socketexception.hh File Reference

#include <iostream>
#include <string>

Go to the source code of this file.

Namespaces

namespace  Network

Classes

class  Network::Exception
 
Author:
Julien Lemoine <speedblue at="" happycoders="" dot="" org>="">
More...

Defines

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

Functions

std::ostream & Network::operator<< (std::ostream &stream, Exception &e)
 Network::NEW_EXCEPTION (HostnameError)
 Network::NEW_EXCEPTION (Ipv6SupportError)
 Network::NEW_EXCEPTION (TLSError)
 Network::NEW_EXCEPTION (InvalidFile)
 Network::NEW_EXCEPTION (TLSSupportError)
 Network::NEW_EXCEPTION (InetptonError)
 Network::NEW_EXCEPTION (InetntopError)
 Network::NEW_EXCEPTION (ConnectionClosed)
 Network::NEW_EXCEPTION (NoConnection)
 Network::NEW_EXCEPTION (Timeout)
 Network::NEW_EXCEPTION (BindError)
 Network::NEW_EXCEPTION (SocketError)
 Network::NEW_EXCEPTION (ListenError)
 Network::NEW_EXCEPTION (SetsockoptError)
 Network::NEW_EXCEPTION (CloseError)
 Network::NEW_EXCEPTION (SelectError)
 Network::NEW_EXCEPTION (ConnectError)
 Network::NEW_EXCEPTION (AcceptError)
 Network::NEW_EXCEPTION (GetpeernameError)
 Network::NEW_EXCEPTION (WSAStartupError)


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::_check_answer(), 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.


Generated on Mon Sep 17 06:12:54 2007 for libsocket by  doxygen 1.5.3