WSF
WsfDisUDP_Device Class Reference

A specialization of WsfDisDevice to support IP-based UDP I/O. More...

#include <WsfDisUDP_Device.hpp>

Inheritance diagram for WsfDisUDP_Device:
Collaboration diagram for WsfDisUDP_Device:

Public Member Functions

 WsfDisUDP_Device (WsfDisInterface *aInterfacePtr, const std::string &aSendAddress, unsigned int aPort, unsigned int aRcvPort, bool aRememberSenderHostname=false)
 Create a device for performing network I/O using UDP broadcast.
 WsfDisUDP_Device (WsfDisInterface *aInterfacePtr, const std::string &aMulticastAddress, const std::string &aInterfaceAddress, unsigned int aPort, unsigned int aRcvPort, int aTimeToLive=-1, bool aRememberSenderHostname=false)
 Create a device for performing network I/O using UDP multicast.
 ~WsfDisUDP_Device () override
DisPdu * GetPdu (DisPduFactory *aPduFactoryPtr) override
void PutPduP (double aSimTime, DisPdu &aPdu) override
GenUDP_IO * GenUDP_IOPtr () override
Public Member Functions inherited from WsfDisDevice
 WsfDisDevice (WsfDisInterface *aInterfacePtr)
virtual ~WsfDisDevice ()
void PutPdu (double aSimTime, DisPdu &aPdu)
DeviceType GetDeviceType () const
void AddFilterAllowance (WsfDisFilterAllowance *anAllowance)

Additional Inherited Members

Public Types inherited from WsfDisDevice
enum  DeviceType {
  cDEVICE_NONE , cDEVICE_RECORD , cDEVICE_PLAYBACK , cDEVICE_MULTICAST ,
  cDEVICE_BROADCAST , cDEVICE_UNICAST , cDEVICE_CEE
}
Protected Member Functions inherited from WsfDisDevice
bool AllowedThroughFilter (DisPdu &aPdu)
Protected Attributes inherited from WsfDisDevice
DeviceType mDeviceType
std::vector< WsfDisFilterAllowance * > mFilterAllowances
WsfDisInterfacemInterfacePtr

Detailed Description

A specialization of WsfDisDevice to support IP-based UDP I/O.

The current implementation only supports UDP broadcast and multicast.

Constructor & Destructor Documentation

◆ WsfDisUDP_Device() [1/2]

WsfDisUDP_Device::WsfDisUDP_Device ( WsfDisInterface * aInterfacePtr,
const std::string & aSendAddress,
unsigned int aPort,
unsigned int aRcvPort,
bool aRememberSenderHostname = false )

Create a device for performing network I/O using UDP broadcast.

References WsfDisDevice::cDEVICE_BROADCAST, WsfDisDevice::cDEVICE_UNICAST, WsfDisDevice::mDeviceType, and WsfDisDevice::WsfDisDevice().

◆ WsfDisUDP_Device() [2/2]

WsfDisUDP_Device::WsfDisUDP_Device ( WsfDisInterface * aInterfacePtr,
const std::string & aMulticastAddress,
const std::string & aInterfaceAddress,
unsigned int aPort,
unsigned int aRcvPort,
int aTimeToLive = -1,
bool aRememberSenderHostname = false )

Create a device for performing network I/O using UDP multicast.

References WsfDisDevice::cDEVICE_MULTICAST, WsfDisDevice::mDeviceType, and WsfDisDevice::WsfDisDevice().

◆ ~WsfDisUDP_Device()

WsfDisUDP_Device::~WsfDisUDP_Device ( )
override

Member Function Documentation

◆ GenUDP_IOPtr()

GenUDP_IO * WsfDisUDP_Device::GenUDP_IOPtr ( )
inlineoverridevirtual

Reimplemented from WsfDisDevice.

◆ GetPdu()

DisPdu * WsfDisUDP_Device::GetPdu ( DisPduFactory * aPduFactoryPtr)
overridevirtual

Reimplemented from WsfDisDevice.

◆ PutPduP()

void WsfDisUDP_Device::PutPduP ( double aSimTime,
DisPdu & aPdu )
overridevirtual

Implements WsfDisDevice.


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved