Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::NetAddress Class Reference

#include <NetAddress.h>

List of all members.

Public Member Functions

void deserialize (class BinaryInput &b)
uint32 ip () const
std::string ipString () const
 NetAddress ()
 NetAddress (const std::string &hostnameAndPort)
 NetAddress (const std::string &hostname, uint16 port)
 NetAddress (uint32 host, uint16 port=0)
bool ok () const
uint16 port () const
void serialize (class BinaryOutput &b) const
std::string toString () const

Static Public Member Functions

static NetAddress broadcastAddress (uint16 port)

Friends

class LightweightConduit
class NetworkDevice
class ReliableConduit


Constructor & Destructor Documentation

G3D::NetAddress::NetAddress ( uint32  host,
uint16  port = 0 
)

In host byte order.

G3D::NetAddress::NetAddress ( const std::string &  hostname,
uint16  port 
)

Port is in host byte order.

G3D::NetAddress::NetAddress ( const std::string &  hostnameAndPort  ) 

String must be in the form "hostname:port".

G3D::NetAddress::NetAddress (  ) 


Member Function Documentation

static NetAddress G3D::NetAddress::broadcastAddress ( uint16  port  )  [static]

For use with a lightweight conduit.

void G3D::NetAddress::deserialize ( class BinaryInput b  ) 

uint32 G3D::NetAddress::ip (  )  const [inline]

Returns a value in host format.

std::string G3D::NetAddress::ipString (  )  const

bool G3D::NetAddress::ok (  )  const

Returns true if this is not an illegal address.

uint16 G3D::NetAddress::port (  )  const [inline]

void G3D::NetAddress::serialize ( class BinaryOutput b  )  const

std::string G3D::NetAddress::toString (  )  const


Friends And Related Function Documentation

friend class LightweightConduit [friend]

friend class NetworkDevice [friend]

friend class ReliableConduit [friend]


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:47 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo