namespace lmsg class MsgAddr Message Address Class.
The message address class holds a message source or destination address consisting of an IP node address, an IP port number and a process number. The process number may be used for a level of routing beyond the usual IP (node, port) addresses if desired. The IP node and port numbers are always stored in network byte order. The process number is stored in the local byte ordering.
typedef unsigned short ipport_t
typedef ::sockaddr_in ipsock_t
~MsgAddr(void)
MsgAddr(void)
MsgAddr(const ipsock_t& sock)
MsgAddr(const MsgAddr& addr)
MsgAddr(ipaddr_t node, ipport_t port=0, ipport_t subp=0)
port - IP port to which the new MsgAddr will be initialized.
subp - Process ID to which the new MsgAddr will be initialized.
MsgAddr& operator=(const MsgAddr& addr)
bool operator==(const MsgAddr& s) const
bool operator!=(const MsgAddr& s) const
ipaddr_t getIPAddr(void) const
ipport_t getIPPort(void) const
ipport_t getSubProcess(void) const
void getAddr(ipsock_t& sock) const
void setIPAddr(ipaddr_t sock)
void setIPPort(ipport_t port)
void setSubProcess(ipport_t port)
void setAddr(const ipsock_t& sock)
static MsgAddr findIPHost(const char* hostName)
const char* getIPName(void) const
alphabetic index hierarchy of classes
generated by doc++