OpenDaVINCI  4.15.3
odcore::wrapper::WIN32Impl::WIN32UDPReceiver Class Reference

#include <WIN32UDPReceiver.h>

Inheritance diagram for odcore::wrapper::WIN32Impl::WIN32UDPReceiver:
Inheritance graph

Public Member Functions

virtual ~WIN32UDPReceiver ()
 
virtual void start ()
 
virtual void stop ()
 
virtual void setSenderPortToIgnore (const uint16_t &portToIgnore)
 
virtual void setStringListener (StringListener *sl)
 
virtual void setPacketListener (PacketListener *pl)
 
void setSynchronousPacketListener (PacketListener *pl)
 

Protected Member Functions

void nextPacket (const odcore::data::Packet &p)
 

Friends

class UDPFactoryWorker< NetworkLibraryWin32 >
 

Detailed Description

This class implements a UDP receiver for receiving data using WIN32.

UDPReceiver

Constructor & Destructor Documentation

odcore::wrapper::WIN32Impl::WIN32UDPReceiver::~WIN32UDPReceiver ( )
virtual

Member Function Documentation

void odcore::io::udp::UDPReceiver::nextPacket ( const odcore::data::Packet &  p)
protectedinherited

This method is called from deriving classes to pass newly arrived packets.

References odcore::io::PacketListener::nextPacket(), odcore::io::PacketPipeline::nextPacket(), and odcore::io::StringListener::nextString().

void odcore::io::udp::UDPReceiver::setPacketListener ( PacketListener pl)
virtualinherited

This method sets or sets a packet listener.

Parameters
plPacketListener to be set. If set to NULL, observing is suspended.

Implements odcore::io::PacketObserver.

References odcore::io::PacketPipeline::setPacketListener().

uint16_t odcore::wrapper::WIN32Impl::WIN32UDPReceiver::setSenderPortToIgnore ( const uint16_t &  portToIgnore)
virtual

This method sets the port to be ignored to receive from to avoid circular data sending and receiving from the same process.

Parameters
pPort to ignore.

Implements odcore::io::udp::UDPReceiver.

void odcore::io::udp::UDPReceiver::setStringListener ( StringListener sl)
virtualinherited

This method sets or unsets a string listener.

Parameters
slStringListener to be set. If set to NULL, observing is suspended.

Implements odcore::io::StringObserver.

void odcore::io::udp::UDPReceiver::setSynchronousPacketListener ( PacketListener pl)
inherited

This method sets a synchronous PacketListener to be used instead of decoupled PacketPipeline.

Parameters
plSynchronous PacketListener to use..
void odcore::wrapper::WIN32Impl::WIN32UDPReceiver::start ( )
virtual

This method starts the asynchronous UDP receiving.

Implements odcore::io::udp::UDPReceiver.

void odcore::wrapper::WIN32Impl::WIN32UDPReceiver::stop ( )
virtual

This method stops the asynchronous UDP receiving. A stopped receiving cannot be restarted!

Implements odcore::io::udp::UDPReceiver.

Friends And Related Function Documentation

friend class UDPFactoryWorker< NetworkLibraryWin32 >
friend