mace::MaceAddr Class Reference

#include <MaceKey.h>

Inheritance diagram for mace::MaceAddr:

Inheritance graph
[legend]
Collaboration diagram for mace::MaceAddr:

Collaboration graph
[legend]

List of all members.


Detailed Description

Helper class to represent Mace addresses.

Mace addresses are allowed to contain both a proxy address and a local address. If there is no proxy address, the local address is where connections are initated to. Proxy addresses may refer either to port forwarding, or to a TcpTranpsort which will forward traffic as an intermediate. If two nodes share the same proxy address, and their local address is routable, then the assumption is that they can connect directly to each other.

Definition at line 166 of file MaceKey.h.


Public Member Functions

void serialize (std::string &s) const
 Encode the current object at the end of str as a bytestring in a compact format (and which doesn't require delimiters to parse).
int deserialize (std::istream &in) throw (mace::SerializationException)
 Replace the current object value from the bytes read from in, returning the number of bytes read.
bool isUnroutable () const
 returns true if the local address is unrouteable.
bool isNull () const
 check to see if the MaceAddr is null

Public Attributes

SockAddr local
 the local (normal) address for a node
SockAddr proxy
 the proxy (optional) address for a node, where to open sockets

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

Generated on Sat Oct 4 21:30:38 2008 for Mace Library by  doxygen 1.5.5