A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
Socket
Collaboration diagram for Socket:

Classes

class  ns3::Ipv4RawSocketFactory
 API to create RAW socket instances. More...
class  ns3::Ipv4RawSocketFactoryImpl
 Implementation of IPv4 raw socket factory. More...
class  ns3::Ipv4RawSocketImpl
 IPv4 raw socket. More...
class  ns3::Ipv6RawSocketFactory
 API to create IPv6 RAW socket instances. More...
class  ns3::Ipv6RawSocketFactoryImpl
 Implementation of IPv6 raw socket factory. More...
class  ns3::Ipv6RawSocketImpl
 IPv6 raw socket. More...
class  ns3::PacketSocket
 A PacketSocket is a link between an application and a net device. More...
class  ns3::PacketSocketFactory
 This can be used as an interface in a node in order for the node to generate PacketSockets that can connect to net devices. More...
class  ns3::PacketSocketServer
 A server using PacketSocket. More...
class  ns3::Socket
 A low-level Socket API based loosely on the BSD Socket API. More...
class  ns3::SocketFactory
 Object to create transport layer instances that provide a socket API to applications. More...
class  ns3::TcpSocket
 (abstract) base class of all TcpSockets More...
class  ns3::TcpSocketBase
 A base class for implementation of a stream socket using TCP. More...
class  ns3::TcpSocketFactory
 API to create TCP socket instances. More...
class  ns3::TcpSocketFactoryImpl
 socket factory implementation for native ns-3 TCP More...
class  ns3::UdpSocket
 (abstract) base class of all UdpSockets More...
class  ns3::UdpSocketFactory
 API to create UDP socket instances. More...
class  ns3::UdpSocketFactoryImpl
 Object to create UDP socket instances. More...
class  ns3::UdpSocketImpl
 A sockets interface to UDP. More...

Functions

static TypeId ns3::GetTypeId ()
 A simple client.

Detailed Description

Function Documentation

◆ GetTypeId()

TypeId ns3::GetTypeId ( )
static

A simple client.

Sends packets using PacketSocket. It does not require (or use) IP.

Packets are sent as soon as PacketSocketClient::Start is called. The application has the same requirements as the PacketSocket for what concerns the underlying NetDevice and the Address scheme. It is meant to be used in ns-3 tests.

The application will send MaxPackets' packets, one every Interval' time. Packet size (`PacketSize') can be configured. Provides a "Tx" Traced Callback (transmitted packets, source address).

Note: packets larger than the NetDevice MTU will not be sent. */ class PacketSocketClient : public Application { public: /**

Get the type ID.

Returns
the object TypeId

Referenced by ns3::RadvdHelper::RadvdHelper(), SimulatorEventsTestCase::SimulatorEventsTestCase(), ns3::TcpGeneralTest::TcpGeneralTest(), ThreadedSimulatorEventsTestCase::ThreadedSimulatorEventsTestCase(), ns3::UdpClientHelper::UdpClientHelper(), ns3::UdpEchoClientHelper::UdpEchoClientHelper(), ns3::UdpEchoServerHelper::UdpEchoServerHelper(), ns3::UdpEchoServerHelper::UdpEchoServerHelper(), ns3::UdpServerHelper::UdpServerHelper(), ns3::UdpTraceClientHelper::UdpTraceClientHelper(), anonymous_namespace{packet-metadata-test.cc}::HistoryHeader< N >::GetInstanceTypeId(), anonymous_namespace{packet-metadata-test.cc}::HistoryTrailer< N >::GetInstanceTypeId(), anonymous_namespace{packet-test-suite.cc}::ALargeTestTag::GetInstanceTypeId(), anonymous_namespace{packet-test-suite.cc}::ATestHeader< N >::GetInstanceTypeId(), anonymous_namespace{packet-test-suite.cc}::ATestTag< N >::GetInstanceTypeId(), anonymous_namespace{packet-test-suite.cc}::ATestTrailer< N >::GetInstanceTypeId(), BenchHeader< N >::GetInstanceTypeId(), and ns3::AnimByteTag::GetInstanceTypeId().

Here is the caller graph for this function: