socket.hh File Reference

#include <iostream>
#include <list>
#include <string>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include "socketexception.hh"

Go to the source code of this file.

Namespaces

namespace  Network

Classes

class  Network::Socket
 This class represent an abstract socket connection (udp | tcp server | tcp client). More...

Defines

#define SENDTO_FLAGS   MSG_NOSIGNAL

Typedefs

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

Enumerations

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

Functions

Socket & Network::operator<< (Socket &s, const std::string &str)
 write a string on current socket
Socket & Network::operator>> (Socket &s, std::string &str)
 read a string on current socket


Define Documentation

#define SENDTO_FLAGS   MSG_NOSIGNAL
 

Definition at line 47 of file socket.hh.

Referenced by Network::Socket::_write_str(), Network::NetSocket::_write_str(), Network::LocalSocket::_write_str(), Network::Socket::_write_str_bin(), Network::NetSocket::_write_str_bin(), and Network::LocalSocket::_write_str_bin().


Generated on Wed Dec 28 10:50:35 2005 for libsocket by  doxygen 1.4.5