xorp

Socket Class Reference

Inheritance diagram for Socket:
SocketClient SocketServer

List of all members.

Public Member Functions

 Socket (const Iptuple &iptuple, EventLoop &e)
EventLoopeventloop ()
XorpFd get_sock ()
void create_listener ()
void set_remote_host (const char *s)
const char * get_remote_host ()

Static Public Member Functions

static void init_sockaddr (string addr, uint16_t local_port, struct sockaddr_storage &ss, size_t &len)
 Given an address (IPv4 or IPv6) symbolic or numeric fill in the provided structure.

Static Public Attributes

static const int MAX_LISTEN_QUEUE = 5

Protected Member Functions

void set_sock (XorpFd s)
void close_socket ()
void create_socket (const struct sockaddr *sin, int is_blocking)
struct sockaddr * get_local_socket (size_t &len)
const string & get_local_interface () const
string get_local_addr ()
uint16_t get_local_port ()
struct sockaddr * get_bind_socket (size_t &len)
struct sockaddr * get_remote_socket (size_t &len)
string get_remote_addr ()
uint16_t get_remote_port ()

Private Attributes

XorpFd _s
const Iptuple _iptuple
EventLoop_eventloop
string _remote_host

Member Function Documentation

void Socket::init_sockaddr ( string  addr,
uint16_t  local_port,
struct sockaddr_storage &  ss,
size_t &  len 
) [static]

Given an address (IPv4 or IPv6) symbolic or numeric fill in the provided structure.

Note: This method is provided as a service to other code and is no longer used by this class. Don't remove it as the test code uses it.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations