$search

castor::net::channels::Udp Class Reference

#include <Udp.h>

Inheritance diagram for castor::net::channels::Udp:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void accept () throw (NetException)
virtual void bind ()
virtual void close (const NetAddress &address) throw (NetException)
virtual void close () throw (NetException)
virtual void connect () throw (NetException)
virtual bool enableBroadcast ()
virtual void enableBroadcast (bool on)
virtual bool enableLoopback ()
virtual void enableLoopback (bool on)
virtual NetAddress getLocalAddress ()
virtual bool isOpen ()
virtual void joinGroup (const asio::ip::address &address)
virtual void leaveGroup (const asio::ip::address &address)
virtual int multicastHops ()
virtual void multicastHops (int hops)
virtual void open (const NetAddress &a)
virtual void open ()
size_t receive (char *data, size_t length, NetAddress &remote)
size_t receive (char *data, size_t length)
virtual bool reuseAddress ()
virtual void reuseAddress (bool on)
void send (const char *data, size_t length, const NetAddress &remote)
void send (const char *data, size_t length)
virtual void setAsync (bool async)
 Udp (asio::io_service &service, const NetAddress &a)
virtual ~Udp ()

Protected Member Functions

void handleReceive (const asio::error_code &error, size_t count)
 Udp (asio::io_service &service)

Private Attributes

boost::condition cond
asio::ip::udp::endpoint endpoint
NetAddressPtr localMcastAddress
bool localMcastAddressHack
boost::mutex monitor
asio::ip::udp::endpoint remoteEndpoint
asio::ip::udp::socket socket

Detailed Description

Definition at line 17 of file Udp.h.


Constructor & Destructor Documentation

castor::net::channels::Udp::Udp ( asio::io_service service  )  [protected]

Definition at line 7 of file Udp.cpp.

castor::net::channels::Udp::Udp ( asio::io_service service,
const NetAddress a 
)

Definition at line 13 of file Udp.cpp.

castor::net::channels::Udp::~Udp (  )  [virtual]

Definition at line 21 of file Udp.cpp.


Member Function Documentation

void castor::net::channels::Udp::accept (  )  throw (NetException) [virtual]

Implements castor::net::CastorChannel.

Definition at line 142 of file Udp.cpp.

void castor::net::channels::Udp::bind (  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 77 of file Udp.cpp.

void castor::net::channels::Udp::close ( const NetAddress address  )  throw (NetException) [virtual]

Implements castor::net::CastorChannel.

Definition at line 191 of file Udp.cpp.

void castor::net::channels::Udp::close (  )  throw (NetException) [virtual]

Implements castor::net::CastorChannel.

Definition at line 181 of file Udp.cpp.

void castor::net::channels::Udp::connect (  )  throw (NetException) [virtual]

Implements castor::net::CastorChannel.

Definition at line 158 of file Udp.cpp.

bool castor::net::channels::Udp::enableBroadcast (  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 113 of file Udp.cpp.

void castor::net::channels::Udp::enableBroadcast ( bool  on  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 109 of file Udp.cpp.

bool castor::net::channels::Udp::enableLoopback (  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 103 of file Udp.cpp.

void castor::net::channels::Udp::enableLoopback ( bool  on  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 99 of file Udp.cpp.

NetAddress castor::net::channels::Udp::getLocalAddress (  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 24 of file Udp.cpp.

void castor::net::channels::Udp::handleReceive ( const asio::error_code error,
size_t  count 
) [protected]

Definition at line 239 of file Udp.cpp.

bool castor::net::channels::Udp::isOpen (  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 194 of file Udp.cpp.

void castor::net::channels::Udp::joinGroup ( const asio::ip::address address  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 130 of file Udp.cpp.

void castor::net::channels::Udp::leaveGroup ( const asio::ip::address address  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 138 of file Udp.cpp.

int castor::net::channels::Udp::multicastHops (  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 124 of file Udp.cpp.

void castor::net::channels::Udp::multicastHops ( int  hops  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 120 of file Udp.cpp.

void castor::net::channels::Udp::open ( const NetAddress a  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 71 of file Udp.cpp.

void castor::net::channels::Udp::open (  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 67 of file Udp.cpp.

size_t castor::net::channels::Udp::receive ( char *  data,
size_t  length,
NetAddress remote 
) [inline, virtual]

Implements castor::net::CastorChannel.

Definition at line 79 of file Udp.h.

size_t castor::net::channels::Udp::receive ( char *  data,
size_t  length 
) [inline, virtual]

Implements castor::net::CastorChannel.

Definition at line 75 of file Udp.h.

bool castor::net::channels::Udp::reuseAddress (  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 93 of file Udp.cpp.

void castor::net::channels::Udp::reuseAddress ( bool  on  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 89 of file Udp.cpp.

void castor::net::channels::Udp::send ( const char *  data,
size_t  length,
const NetAddress remote 
) [inline, virtual]

Implements castor::net::CastorChannel.

Definition at line 105 of file Udp.h.

void castor::net::channels::Udp::send ( const char *  data,
size_t  length 
) [inline, virtual]

Implements castor::net::CastorChannel.

Definition at line 90 of file Udp.h.

void castor::net::channels::Udp::setAsync ( bool  async  )  [virtual]

Implements castor::net::CastorChannel.

Definition at line 56 of file Udp.cpp.


Member Data Documentation

boost::condition castor::net::channels::Udp::cond [private]

Definition at line 26 of file Udp.h.

Definition at line 23 of file Udp.h.

Definition at line 29 of file Udp.h.

Definition at line 31 of file Udp.h.

boost::mutex castor::net::channels::Udp::monitor [private]

Definition at line 27 of file Udp.h.

Definition at line 24 of file Udp.h.

Definition at line 21 of file Udp.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Castor
Author(s): Carpe Noctem
autogenerated on Fri Mar 1 14:41:52 2013