SenderUDP Class Reference
[Internet protocol sockets]

client UDP that sends packets to a specific address and on a specific port More...

#include <socketUDP.h>

Inheritance diagram for SenderUDP:

SocketUDP MIPObject BroadcasterUDP

List of all members.

Public Member Functions

 SenderUDP (const int port, string &host)
 ~SenderUDP ()
int send (string &msg)
 send a string
int send (char *msg, int lsize)
 send a char array
virtual string getObjectName () const
 Method that gives the name of the class as it will be displayed by the tracer.


Detailed Description

client UDP that sends packets to a specific address and on a specific port

Author:
Paolo Stegagno

Constructor & Destructor Documentation

SenderUDP::SenderUDP ( const int  port,
string &  host 
)

SenderUDP::~SenderUDP (  ) 


Member Function Documentation

int SenderUDP::send ( string &  msg  ) 

send a string

Parameters:
msg string to be sent

int SenderUDP::send ( char *  msg,
int  lsize 
)

send a char array

Parameters:
msg pointer to char array to be sent
lsize number of char to be sent

virtual string SenderUDP::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

Reimplemented from SocketUDP.

Reimplemented in BroadcasterUDP.


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