class Iptuple

Store the Local Interface, Local Server Port, Peer Interface and Peer Server Port tuple. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Public Members


Detailed Description

Store the Local Interface, Local Server Port, Peer Interface and Peer Server Port tuple.

Also create the socket buffers to be used by the socket code. All the IP protocol family differences can therefore be hidden in here.

The endpoint addresses can be presented as either numeric addresses or symbolic addresses. Symbolic addresses are converted to numeric addresses and held as such. The symbolic address are kept to aid debugging but are never accessed after the initial conversion to the numeric form. Only in the constructor is there a possibility of a DNS / Yellow pages interaction taking place. After this as we are dealing with IP addresses there should be no danger.

static const int SOCKET_BUFFER_SIZE

SOCKET_BUFFER_SIZE

static const int SOCKET_BUFFER_SIZE

SOCKET_BUFFER_SIZE

 Iptuple ()

Iptuple

 Iptuple (const char *local_interface, uint16_t local_port, const char *peer_interface, uint16_t peer_port)
throw(UnresolvableHost,AddressFamilyMismatch)

Iptuple

 Iptuple (const Iptuple&)

Iptuple

Iptuple  operator= (const Iptuple&)

operator=

void  copy (const Iptuple&)

copy

bool  operator== (const Iptuple&)

operator==

[const]

const struct sockaddr * get_local_socket (size_t& len)

get_local_socket

[const]

string  get_local_addr ()

get_local_addr

[const]

uint16_t  get_local_port ()

get_local_port

[const]

const struct sockaddr * get_bind_socket (size_t& len)

get_bind_socket

[const]

const struct sockaddr * get_peer_socket (size_t& len)

get_peer_socket

[const]

string  get_peer_addr ()

get_peer_addr

[const]

uint16_t  get_peer_port ()

get_peer_port

[const]

string  str ()

str

[const]


Generated by: pavlin on possum.icir.org on Wed Apr 13 21:53:16 2005, using kdoc $.