Network Namespace Reference

Network namespace represent all networks connection. More...


Classes

class  LocalSocket
class  NetSocket
 
Author:
Julien Lemoine <speedblue at="" happycoders="" dot="" org>="">
More...
class  Socket
 
Author:
Julien Lemoine <speedblue at="" happycoders="" dot="" org>="">
More...
class  Exception
 
Author:
Julien Lemoine <speedblue at="" happycoders="" dot="" org>="">
More...
class  TcpSocket
class  UdpSocket

Typedefs

typedef enum
Network::e_gnutls_kind 
GnuTLSKind
typedef enum
Network::e_pkind 
PROTO_KIND
typedef enum
Network::e_kind 
SOCKET_KIND
typedef enum
Network::e_version 
SOCKET_VERSION

Enumerations

enum  e_gnutls_kind { LIBSOCKET_TLS, LIBSOCKET_SSL }
enum  e_pkind { text, binary }
enum  e_kind { TCP, UDP, LOCAL }
enum  e_version { V4, V6 }

Functions

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


Detailed Description

Network namespace represent all networks connection.

Typedef Documentation

typedef enum Network::e_gnutls_kind Network::GnuTLSKind

typedef enum Network::e_pkind Network::PROTO_KIND

typedef enum Network::e_kind Network::SOCKET_KIND

typedef enum Network::e_version Network::SOCKET_VERSION


Enumeration Type Documentation

enum Network::e_gnutls_kind

Enumerator:
LIBSOCKET_TLS 
LIBSOCKET_SSL 

Definition at line 65 of file socket.hh.

00066     {
00067       LIBSOCKET_TLS,
00068       LIBSOCKET_SSL
00069     } GnuTLSKind;

enum Network::e_kind

Enumerator:
TCP 
UDP 
LOCAL 

Definition at line 77 of file socket.hh.

00078     {
00079       TCP,
00080       UDP,
00081       LOCAL
00082     } SOCKET_KIND;

enum Network::e_pkind

Enumerator:
text 
binary 

Definition at line 71 of file socket.hh.

00072     {
00073       text,
00074       binary
00075     } PROTO_KIND;

enum Network::e_version

Enumerator:
V4 
V6 

Definition at line 84 of file socket.hh.

00085     {
00086       V4,
00087       V6
00088     } SOCKET_VERSION;


Function Documentation

Network::NEW_EXCEPTION ( WSAStartupError   ) 

exception launched when WSAStartup windows function return an error

Network::NEW_EXCEPTION ( GetpeernameError   ) 

exception launched when getpeername libc function return an error

Network::NEW_EXCEPTION ( AcceptError   ) 

exception launched when accept libc function return an error

Network::NEW_EXCEPTION ( ConnectError   ) 

exception launched when connect libc function return an error

Network::NEW_EXCEPTION ( SelectError   ) 

exception launched when select libc function return an error

Network::NEW_EXCEPTION ( CloseError   ) 

exception launched when close libc function return an error

Network::NEW_EXCEPTION ( SetsockoptError   ) 

exception launched when setsockopt libc function return an error

Network::NEW_EXCEPTION ( ListenError   ) 

exception launched when listen libc function return an error

Network::NEW_EXCEPTION ( SocketError   ) 

exception launched when socket libc function return an error

Network::NEW_EXCEPTION ( BindError   ) 

exception launched when bind libc function return an error

Network::NEW_EXCEPTION ( Timeout   ) 

exception launched when there is a timeout

Network::NEW_EXCEPTION ( NoConnection   ) 

exception launched when there is no active connection

Network::NEW_EXCEPTION ( ConnectionClosed   ) 

exception launched when connection is closed

Network::NEW_EXCEPTION ( InetntopError   ) 

exception launched when the addr is not valid for inet_ntop

Network::NEW_EXCEPTION ( InetptonError   ) 

exception launched when a addr is invalid pour inet_pton

Network::NEW_EXCEPTION ( TLSSupportError   ) 

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

Network::NEW_EXCEPTION ( InvalidFile   ) 

exception launched when a file does not exist

Network::NEW_EXCEPTION ( TLSError   ) 

exception launched when error is received during TLS initialization

Network::NEW_EXCEPTION ( Ipv6SupportError   ) 

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

Network::NEW_EXCEPTION ( HostnameError   ) 

exception launched when a hostname is incorrect

std::ostream & Network::operator<< ( std::ostream &  stream,
Exception &  e 
)

Definition at line 27 of file socketexception.cc.

References Network::Exception::print().

00028   {
00029     e.print(stream);
00030     return (stream);
00031   }

Socket & Network::operator<< ( Socket &  s,
const std::string &  str 
)

write a string on current socket

Definition at line 363 of file socket.cc.

References Network::Socket::write().

00364   {
00365     s.write(str);
00366     return s;
00367   }

Socket & Network::operator>> ( Socket &  s,
std::string &  str 
)

read a string on current socket

Definition at line 369 of file socket.cc.

References Network::Socket::read().

00370   {
00371     str = s.read();
00372     return s;
00373   }


Generated on Mon Sep 17 04:19:14 2007 for libsocket by  doxygen 1.5.3