ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

IPNetwork Class Reference

Inheritance diagram for IPNetwork:

Network TclObject UDPIPNetwork List of all members.

Public Member Functions

 IPNetwork ()
int ttl () const
int noloopback_broken ()
int setmttl (Socket, int)
int setmloop (Socket, int)
int command (int argc, const char *const *argv)
Socket rchannel ()
Socket schannel ()
int send (u_char *buf, int len)
int recv (u_char *buf, int len, sockaddr &from, double &)
in_addr & laddr ()
in_addr & dstaddr ()
int add_membership (Socket, in_addr &grp)
int drop_membership (Socket, in_addr &grp)

Static Public Member Functions

int bindsock (Socket, in_addr &, u_int16_t, sockaddr_in &)
int connectsock (Socket, in_addr &, u_int16_t, sockaddr_in &)
int rbufsize (Socket, int)
int sbufsize (Socket, int)

Protected Member Functions

void reset (int reconfigure)
virtual int open (int mode)
virtual void reconfigure ()
int close ()

Protected Attributes

in_addr destaddr_
in_addr localaddr_
int mttl_
Socket rsock_
Socket ssock_
int noloopback_broken_
int loop_
time_t last_reset_

Constructor & Destructor Documentation


Member Function Documentation

int IPNetwork::add_membership Socket   ,
in_addr &    grp

int IPNetwork::bindsock Socket   ,
in_addr &   ,
u_int16_t   ,
sockaddr_in &   

int IPNetwork::close   [protected]

int IPNetwork::command int    argc,
const char *const *    argv

Reimplemented from Network.

Reimplemented in UDPIPNetwork.

int IPNetwork::connectsock Socket   ,
in_addr &   ,
u_int16_t   ,
sockaddr_in &   

int IPNetwork::drop_membership Socket   ,
in_addr &    grp

in_addr& IPNetwork::dstaddr   [inline]

in_addr& IPNetwork::laddr   [inline]

int IPNetwork::noloopback_broken   [inline]

int IPNetwork::open int    mode [protected, virtual]

Reimplemented in UDPIPNetwork.

int IPNetwork::rbufsize Socket   ,

Socket IPNetwork::rchannel   [inline, virtual]

Implements Network.

void IPNetwork::reconfigure   [protected, virtual]

Reimplemented in UDPIPNetwork.

int IPNetwork::recv u_char *    buf,
int    len,
sockaddr &    from,

Implements Network.

Reimplemented in UDPIPNetwork.

void IPNetwork::reset int    reconfigure [protected]

int IPNetwork::sbufsize Socket   ,

Socket IPNetwork::schannel   [inline, virtual]

Implements Network.

int IPNetwork::send u_char *    buf,
int    len

Implements Network.

Reimplemented in UDPIPNetwork.

int IPNetwork::setmloop Socket   ,

int IPNetwork::setmttl Socket   ,

int IPNetwork::ttl   const [inline]

Member Data Documentation

in_addr IPNetwork::destaddr_ [protected]

time_t IPNetwork::last_reset_ [protected]

in_addr IPNetwork::localaddr_ [protected]

int IPNetwork::loop_ [protected]

int IPNetwork::mttl_ [protected]

int IPNetwork::noloopback_broken_ [protected]

Socket IPNetwork::rsock_ [protected]

Socket IPNetwork::ssock_ [protected]

The documentation for this class was generated from the following file:
This document is generated by doxygen.