IBR-DTNSuite  0.8
ibrcommon::udpsocket Class Reference

#include <udpsocket.h>

Inheritance diagram for ibrcommon::udpsocket:
Collaboration diagram for ibrcommon::udpsocket:

List of all members.

Classes

class  SocketException

Public Member Functions

virtual ~udpsocket ()
virtual void shutdown ()
int receive (char *data, size_t maxbuffer)
int receive (char *data, size_t maxbuffer, std::string &address, unsigned int &port)
int send (const ibrcommon::vaddress &address, const unsigned int port, const char *data, const size_t length)

Protected Member Functions

 udpsocket () throw (SocketException)

Protected Attributes

vsocket _socket
struct sockaddr_in _sockaddr

Detailed Description

Definition at line 22 of file udpsocket.h.


Constructor & Destructor Documentation

Definition at line 28 of file udpsocket.cpp.

References _socket, and ibrcommon::vsocket::close().

Here is the call graph for this function:

Definition at line 24 of file udpsocket.cpp.


Member Function Documentation

int ibrcommon::udpsocket::receive ( char *  data,
size_t  maxbuffer 
)

Definition at line 38 of file udpsocket.cpp.

References _socket, ibrcommon::recvfrom(), and ibrcommon::vsocket::select().

Referenced by dtn::net::UDPConvergenceLayer::operator>>().

Here is the call graph for this function:

int ibrcommon::udpsocket::receive ( char *  data,
size_t  maxbuffer,
std::string &  address,
unsigned int &  port 
)

Definition at line 51 of file udpsocket.cpp.

References _socket, ibrcommon::recvfrom(), and ibrcommon::vsocket::select().

Here is the call graph for this function:

int ibrcommon::udpsocket::send ( const ibrcommon::vaddress address,
const unsigned int  port,
const char *  data,
const size_t  length 
)
void ibrcommon::udpsocket::shutdown ( ) [virtual]

Reimplemented in dtn::net::UDPDatagramService.

Definition at line 33 of file udpsocket.cpp.

References _socket, and ibrcommon::vsocket::close().

Referenced by dtn::net::UDPConvergenceLayer::__cancellation().

Here is the call graph for this function:


Member Data Documentation

struct sockaddr_in ibrcommon::udpsocket::_sockaddr [protected]

Definition at line 44 of file udpsocket.h.


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