Public Member Functions | Public Attributes

netlib::address_t Struct Reference
[Wavepacket Sockets API]

holds the IP address and port of a remote host More...

#include <wavesock.h>

Collaboration diagram for netlib::address_t:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 address_t (const char *server, int remotePort) throw ()
 address_t (void) throw ()
void clear (void) throw ()
bool isValid (void) const throw ()
bool operator== (const address_t &rhs) const throw ()
bool operator!= (const address_t &rhs) const throw ()
bool set (const char *server, int remotePort)
 set the IP and port. Returns false if server name doesn't resolve
bool setlocal (int remotePort)
 set to local host (picks first non-loopback address)
void dump (const char *msg) const throw ()

Public Attributes

ip_addr_t ip
int port

Detailed Description

holds the IP address and port of a remote host

Definition at line 177 of file wavesock.h.


Constructor & Destructor Documentation

netlib::address_t::address_t ( const char *  server,
int  remotePort 
) throw () [inline]

Definition at line 179 of file wavesock.h.


The documentation for this struct was generated from the following files: