Socket
[Node]

Collaboration diagram for Socket:

Classes

class  ns3::NscTcpSocketImpl
 Socket logic for the NSC TCP sockets. More...
class  ns3::TcpSocketImpl
 An implementation of a stream socket using TCP. More...
class  ns3::Ipv4RawSocketFactory
 API to create RAW socket instances. More...
class  ns3::PacketSocketFactory
class  ns3::PacketSocket
 A PacketSocket is a link between an application and a net device. More...
class  ns3::SocketFactory
 Object to create transport layer instances that provide a socket API to applications. More...
class  ns3::Socket
 A low-level Socket API based loosely on the BSD Socket API.

A few things to keep in mind about this type of socket:

  • it uses ns-3 API constructs such as class ns3::Address instead of C-style structs
  • in contrast to the original BSD socket API, this API is asynchronous: it does not contain blocking calls. Sending and receiving operations must make use of the callbacks provided.
  • It also uses class ns3::Packet as a fancy byte buffer, allowing data to be passed across the API using an ns-3 Packet instead of a raw data pointer.
  • Not all of the full POSIX sockets API is supported.
More...
class  ns3::TcpSocketFactory
 API to create TCP socket instances. More...
class  ns3::TcpSocket
 (abstract) base class of all TcpSockets More...
class  ns3::UdpSocketFactory
 API to create UDP socket instances. More...
class  ns3::UdpSocket
 (abstract) base class of all UdpSockets More...

Generated on Fri Apr 9 15:01:04 2010 for NS-3 by  doxygen 1.5.8