Classes | Public Member Functions | Protected Member Functions | Protected Attributes

ibrcommon::udpsocket Class Reference

#include <udpsocket.h>

Inherited by ibrcommon::BroadcastSocket, ibrcommon::MulticastSocket, and ibrcommon::UnicastSocket.

List of all members.

Classes

class  peer
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)
udpsocket::peer getPeer (const std::string address, const unsigned int port)

Protected Member Functions

 udpsocket (u_char proto=0) throw (SocketException)

Protected Attributes

int _socket
struct sockaddr_in _sockaddr

Detailed Description

Definition at line 21 of file udpsocket.h.


Constructor & Destructor Documentation

ibrcommon::udpsocket::~udpsocket (  )  [virtual]

Definition at line 36 of file udpsocket.cpp.

References _socket, and shutdown().

Here is the call graph for this function:

ibrcommon::udpsocket::udpsocket ( u_char  proto = 0  )  throw (SocketException) [protected]

Definition at line 24 of file udpsocket.cpp.


Member Function Documentation

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

Definition at line 60 of file udpsocket.cpp.

References _socket.

void ibrcommon::udpsocket::shutdown (  )  [virtual]

Member Data Documentation

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

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