SocketUDP Class Reference
[Internet protocol sockets]

generic UDP-IP communication class, parent of all other UDP-IP communication classes More...

#include <socketUDP.h>

Inheritance diagram for SocketUDP:

MIPObject ListenerUDP SenderUDP Wrapper BroadcasterUDP

List of all members.

Public Member Functions

 SocketUDP ()
 ~SocketUDP ()
void closeConnection ()
virtual string getObjectName () const
 Method that gives the name of the class as it will be displayed by the tracer.

Public Attributes

int m_sockfd
struct sockaddr_in my_addr
 my address information
struct sockaddr_in their_addr
 connector's address information
struct hostent * he

Protected Attributes

stringstream _ssdebug


Detailed Description

generic UDP-IP communication class, parent of all other UDP-IP communication classes

Author:
Paolo Stegagno, Antonio Franchi

Constructor & Destructor Documentation

SocketUDP::SocketUDP (  ) 

SocketUDP::~SocketUDP (  ) 


Member Function Documentation

void SocketUDP::closeConnection (  ) 

virtual string SocketUDP::getObjectName (  )  const [inline, virtual]

Method that gives the name of the class as it will be displayed by the tracer.

Returns:
a string, which is the name of the current class
Note:
pure virtual, has to be redefined for each child class

Implements MIPObject.

Reimplemented in Wrapper, ListenerUDP, SenderUDP, and BroadcasterUDP.


Member Data Documentation

stringstream SocketUDP::_ssdebug [protected]

struct sockaddr_in SocketUDP::my_addr [read]

my address information

struct sockaddr_in SocketUDP::their_addr [read]

connector's address information

struct hostent* SocketUDP::he [read]


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

Generated on Mon Feb 20 07:01:10 2017 for MIP by  doxygen 1.5.6