OpenJAUS Software Development Kit  4.3.1
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
openjaus::transport::AS5669::SocketInterface Class Reference

#include <SocketInterface.h>

Public Member Functions

 SocketInterface ()
 
virtual ~SocketInterface ()
 
 SocketInterface (system::NetworkInterface interface, JudpSettingsInterface *settings, system::Queue< JudpPacket *> *queue)
 
const system::DatagramSocketgetDatagramSocket () const
 Accessor to get the value of datagramSocket. More...
 
JudpAddressgetUdpAddress () const
 Accessor to get the value of udpAddress. More...
 
bool setUdpAddress (JudpAddress *udpAddress)
 Accessor to set value of udpAddress. More...
 
const system::MulticastSocketgetDiscoverySocket () const
 Accessor to get the value of discoverySocket. More...
 
const system::ThreadgetDiscoveryThread () const
 Accessor to get the value of discoveryThread. More...
 
virtual std::string toString () const
 
const system::InetAddressgetBroadcast () const
 
int send (system::Packet &packet)
 
void run ()
 
void stop ()
 

Protected Member Functions

virtual void * recvThreadMethod ()
 
virtual void * discoveryThreadMethod ()
 
void receiveLoop (system::Socket &socket)
 

Protected Attributes

JudpAddressudpAddress
 
system::DatagramSocket datagramSocket
 
system::Thread recvThread
 
system::MulticastSocket discoverySocket
 
system::Thread discoveryThread
 
system::NetworkInterface interface
 
system::InetAddress multicastAddress
 
system::Queue< JudpPacket * > * rxQueue
 

Friends

OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const SocketInterface &object)
 
OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const SocketInterface *object)
 

Constructor & Destructor Documentation

§ SocketInterface() [1/2]

openjaus::transport::AS5669::SocketInterface::SocketInterface ( )

§ ~SocketInterface()

openjaus::transport::AS5669::SocketInterface::~SocketInterface ( )
virtual

§ SocketInterface() [2/2]

openjaus::transport::AS5669::SocketInterface::SocketInterface ( system::NetworkInterface  interface,
JudpSettingsInterface settings,
system::Queue< JudpPacket *> *  queue 
)

Member Function Documentation

§ discoveryThreadMethod()

void * openjaus::transport::AS5669::SocketInterface::discoveryThreadMethod ( )
protectedvirtual

§ getBroadcast()

const system::InetAddress & openjaus::transport::AS5669::SocketInterface::getBroadcast ( ) const

§ getDatagramSocket()

const system::DatagramSocket & openjaus::transport::AS5669::SocketInterface::getDatagramSocket ( ) const

§ getDiscoverySocket()

const system::MulticastSocket & openjaus::transport::AS5669::SocketInterface::getDiscoverySocket ( ) const

§ getDiscoveryThread()

const system::Thread & openjaus::transport::AS5669::SocketInterface::getDiscoveryThread ( ) const

§ getUdpAddress()

JudpAddress * openjaus::transport::AS5669::SocketInterface::getUdpAddress ( ) const

§ receiveLoop()

void openjaus::transport::AS5669::SocketInterface::receiveLoop ( system::Socket socket)
protected

§ recvThreadMethod()

void * openjaus::transport::AS5669::SocketInterface::recvThreadMethod ( )
protectedvirtual

§ run()

void openjaus::transport::AS5669::SocketInterface::run ( )

§ send()

int openjaus::transport::AS5669::SocketInterface::send ( system::Packet packet)

§ setUdpAddress()

bool openjaus::transport::AS5669::SocketInterface::setUdpAddress ( JudpAddress udpAddress)
Parameters
udpAddressThe value of the new udpAddress.

§ stop()

void openjaus::transport::AS5669::SocketInterface::stop ( )

§ toString()

std::string openjaus::transport::AS5669::SocketInterface::toString ( ) const
virtual

Friends And Related Function Documentation

§ operator<< [1/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const SocketInterface object 
)
friend

§ operator<< [2/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const SocketInterface object 
)
friend

Member Data Documentation

§ datagramSocket

system::DatagramSocket openjaus::transport::AS5669::SocketInterface::datagramSocket
protected

§ discoverySocket

system::MulticastSocket openjaus::transport::AS5669::SocketInterface::discoverySocket
protected

§ discoveryThread

system::Thread openjaus::transport::AS5669::SocketInterface::discoveryThread
protected

§ interface

system::NetworkInterface openjaus::transport::AS5669::SocketInterface::interface
protected

§ multicastAddress

system::InetAddress openjaus::transport::AS5669::SocketInterface::multicastAddress
protected

§ recvThread

system::Thread openjaus::transport::AS5669::SocketInterface::recvThread
protected

§ rxQueue

system::Queue<JudpPacket *>* openjaus::transport::AS5669::SocketInterface::rxQueue
protected

§ udpAddress

JudpAddress* openjaus::transport::AS5669::SocketInterface::udpAddress
protected

The documentation for this class was generated from the following files: