All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Attributes
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 () throw (NetException)
virtual void close (const NetAddress &address) throw (NetException)
virtual void connect () throw (NetException)
virtual void enableBroadcast (bool on)
virtual bool enableBroadcast ()
virtual void enableLoopback (bool on)
virtual bool enableLoopback ()
virtual NetAddress getLocalAddress ()
virtual bool isOpen ()
virtual void joinGroup (const asio::ip::address &address)
virtual void leaveGroup (const asio::ip::address &address)
virtual void multicastHops (int hops)
virtual int multicastHops ()
virtual void open ()
virtual void open (const NetAddress &a)
size_t receive (char *data, size_t length)
size_t receive (char *data, size_t length, NetAddress &remote)
virtual void reuseAddress (bool on)
virtual bool reuseAddress ()
void send (const char *data, size_t length)
void send (const char *data, size_t length, const NetAddress &remote)
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

Definition at line 7 of file Udp.cpp.

Definition at line 13 of file Udp.cpp.

Definition at line 21 of file Udp.cpp.


Member Function Documentation

Implements castor::net::CastorChannel.

Definition at line 142 of file Udp.cpp.

Implements castor::net::CastorChannel.

Definition at line 77 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::close ( const NetAddress address) throw (NetException) [virtual]

Implements castor::net::CastorChannel.

Definition at line 191 of file Udp.cpp.

Implements castor::net::CastorChannel.

Definition at line 158 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.

Implements castor::net::CastorChannel.

Definition at line 113 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.

Implements castor::net::CastorChannel.

Definition at line 103 of file Udp.cpp.

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.

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.

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

Implements castor::net::CastorChannel.

Definition at line 120 of file Udp.cpp.

Implements castor::net::CastorChannel.

Definition at line 124 of file Udp.cpp.

Implements castor::net::CastorChannel.

Definition at line 67 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.

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.

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.

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

Implements castor::net::CastorChannel.

Definition at line 89 of file Udp.cpp.

Implements castor::net::CastorChannel.

Definition at line 93 of file Udp.cpp.

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::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::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 Nov 8 2013 11:05:41