#include <socket.h>
Inheritance diagram for SockInetAddr:
Public Member Functions | |
Construtors and Destructors | |
SockInetAddr () throw () | |
Default constructor. | |
SockInetAddr (unsigned long addr, int port_no=0) throw () | |
Creates a SockInetAddr object from an unsigned int (containing the IP address) and a port number. | |
SockInetAddr (const String &host_name, int port_no=0) throw () | |
Creates a SockInetAddr object from a given hostname and port number. | |
SockInetAddr (unsigned long addr, const String &service_name, const String &protocol_name="tcp") throw () | |
SockInetAddr (const String &host_name, const String &service_name, const String &protocol_name="tcp") throw () | |
SockInetAddr (const SockInetAddr &sina) throw () | |
~SockInetAddr () throw () | |
Destructor. | |
Converters | |
operator void * () const throw () | |
Convert a SockInetAddr to void*. | |
Accessors | |
int | getSize () const throw () |
Get the size (of what?). | |
int | getFamily () const throw () |
Get the socket family. | |
sockaddr * | getAddr () const throw () |
Get the actual address as a standard sockaddr. | |
int | getPort () const throw () |
const String & | getHostname () const throw () |
Protected Member Functions | |
void | setport_ (const String &service_name, const String &protocol_name="tcp") throw () |
void | setaddr_ (const String &hostname) throw () |