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  

Network Class Reference

#include <net.h>

Inheritance diagram for Network:

TclObject IPNetwork PcapNetwork UDPIPNetwork PcapFileNetwork PcapLiveNetwork List of all members.

Public Member Functions

 Network ()
virtual int command (int argc, const char *const *argv)
virtual int send (u_char *buf, int len)=0
virtual int recv (u_char *buf, int len, sockaddr &from, double &ts)=0
virtual int recv (netpkt_handler callback, void *clientdata)
virtual int rchannel ()=0
virtual int schannel ()=0
int mode ()

Static Public Member Functions

int nonblock (int fd)
int parsemode (const char *)
char * modename (int)

Protected Attributes

int mode_

Constructor & Destructor Documentation

Network::Network (    )  [inline]
 


Member Function Documentation

int Network::command (  int    argc,
const char *const *    argv
)  [virtual]
 

Reimplemented from TclObject.

Reimplemented in IPNetwork, UDPIPNetwork, PcapNetwork, PcapLiveNetwork, and PcapFileNetwork.

int Network::mode (    )  [inline]
 

char * Network::modename (  int    )  [static]
 

int Network::nonblock (  int    fd )  [static]
 

int Network::parsemode (  const char *    )  [static]
 

virtual int Network::rchannel (    )  [pure virtual]
 

Implemented in IPNetwork, and PcapNetwork.

virtual int Network::recv (  netpkt_handler    callback,
void *    clientdata
)  [inline, virtual]
 

Reimplemented in PcapNetwork.

virtual int Network::recv (  u_char *    buf,
int    len,
sockaddr &    from,
double &    ts
)  [pure virtual]
 

Implemented in IPNetwork, UDPIPNetwork, and PcapNetwork.

virtual int Network::schannel (    )  [pure virtual]
 

Implemented in IPNetwork, and PcapNetwork.

virtual int Network::send (  u_char *    buf,
int    len
)  [pure virtual]
 

Implemented in IPNetwork, UDPIPNetwork, and PcapNetwork.


Member Data Documentation

int Network::mode_ [protected]
 


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