Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

socketexception.hh File Reference

#include <iostream>
#include <string>

Go to the source code of this file.

Namespaces

namespace  Network

Defines

#define HERE   __FILE__, __LINE__
#define NEW_EXCEPTION(Name)

Functions

 NEW_EXCEPTION (HostnameError)
 exception launched when a hostname is incorrect
 NEW_EXCEPTION (Ipv6SupportError)
 exception launched when user want ipv6, but lib is not compiled with
 NEW_EXCEPTION (TLSError)
 exception launched when error is received during TLS initialization
 NEW_EXCEPTION (InvalidFile)
 exception launched when a file does not exist
 NEW_EXCEPTION (TLSSupportError)
 exception launched when user want TLS, but lib is not compiled with
 NEW_EXCEPTION (InetptonError)
 exception launched when a addr is invalid pour inet_pton
 NEW_EXCEPTION (InetntopError)
 exception launched when the addr is not valid for inet_ntop
 NEW_EXCEPTION (ConnectionClosed)
 exception launched when connection is closed
 NEW_EXCEPTION (NoConnection)
 exception launched when there is no active connection
 NEW_EXCEPTION (Timeout)
 exception launched when there is a timeout
 NEW_EXCEPTION (BindError)
 exception launched when bind libc function return an error
 NEW_EXCEPTION (SocketError)
 exception launched when socket libc function return an error
 NEW_EXCEPTION (ListenError)
 exception launched when listen libc function return an error
 NEW_EXCEPTION (SetsockoptError)
 exception launched when setsockopt libc function return an error
 NEW_EXCEPTION (CloseError)
 exception launched when close libc function return an error
 NEW_EXCEPTION (SelectError)
 exception launched when select libc function return an error
 NEW_EXCEPTION (ConnectError)
 exception launched when connect libc function return an error
 NEW_EXCEPTION (AcceptError)
 exception launched when accept libc function return an error
 NEW_EXCEPTION (GetpeernameError)
 exception launched when getpeername libc function return an error
 NEW_EXCEPTION (WSAStartupError)
 exception launched when WSAStartup windows function return an error


Define Documentation

#define HERE   __FILE__, __LINE__
 

Definition at line 26 of file socketexception.hh.

Referenced by Network::NetSocket::_accept(), Network::NetSocket::_bind(), Network::LocalSocket::_bind(), Network::Socket::_close(), Network::NetSocket::_connect(), Network::NetSocket::_get_addr(), Network::Socket::_listen(), Network::NetSocket::_read_line(), Network::LocalSocket::_read_line(), Network::UdpSocket::_read_line_bin(), Network::TcpSocket::_read_line_bin(), Network::LocalSocket::_read_line_bin(), Network::Socket::_set_timeout(), Network::Socket::_write_str(), Network::NetSocket::_write_str(), Network::LocalSocket::_write_str(), Network::Socket::_write_str_bin(), Network::NetSocket::_write_str_bin(), Network::LocalSocket::_write_str_bin(), Network::Socket::enable_tls(), Network::Socket::init_tls(), and Network::Socket::Socket().

#define NEW_EXCEPTION Name   ) 
 

Value:

class Name : public Exception                                           \
  {                                                                     \
  public:                                                               \
    Name(const std::string& desc, const char * file, int line) :        \
      Exception(desc, file, line)                                       \
    {}                                                                  \
    Name() : Exception() {}                                             \
    Name(const char *file, int line) : Exception(file, line) {}         \
  };

Definition at line 31 of file socketexception.hh.


Function Documentation

NEW_EXCEPTION WSAStartupError   ) 
 

exception launched when WSAStartup windows function return an error

NEW_EXCEPTION GetpeernameError   ) 
 

exception launched when getpeername libc function return an error

NEW_EXCEPTION AcceptError   ) 
 

exception launched when accept libc function return an error

NEW_EXCEPTION ConnectError   ) 
 

exception launched when connect libc function return an error

NEW_EXCEPTION SelectError   ) 
 

exception launched when select libc function return an error

NEW_EXCEPTION CloseError   ) 
 

exception launched when close libc function return an error

NEW_EXCEPTION SetsockoptError   ) 
 

exception launched when setsockopt libc function return an error

NEW_EXCEPTION ListenError   ) 
 

exception launched when listen libc function return an error

NEW_EXCEPTION SocketError   ) 
 

exception launched when socket libc function return an error

NEW_EXCEPTION BindError   ) 
 

exception launched when bind libc function return an error

NEW_EXCEPTION Timeout   ) 
 

exception launched when there is a timeout

NEW_EXCEPTION NoConnection   ) 
 

exception launched when there is no active connection

NEW_EXCEPTION ConnectionClosed   ) 
 

exception launched when connection is closed

NEW_EXCEPTION InetntopError   ) 
 

exception launched when the addr is not valid for inet_ntop

NEW_EXCEPTION InetptonError   ) 
 

exception launched when a addr is invalid pour inet_pton

NEW_EXCEPTION TLSSupportError   ) 
 

exception launched when user want TLS, but lib is not compiled with

NEW_EXCEPTION InvalidFile   ) 
 

exception launched when a file does not exist

NEW_EXCEPTION TLSError   ) 
 

exception launched when error is received during TLS initialization

NEW_EXCEPTION Ipv6SupportError   ) 
 

exception launched when user want ipv6, but lib is not compiled with

NEW_EXCEPTION HostnameError   ) 
 

exception launched when a hostname is incorrect


Generated on Fri Apr 8 06:13:01 2005 for libsocket by  doxygen 1.4.0