mdDGChannel Class Reference

#include <mdcommon.h>

Collaboration diagram for mdDGChannel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 mdDGChannel (boost::asio::io_service &io_service, short inport, int stdDevIdx=myStdDevIdx)
void async_send (mdDatagram &dg)
bool connect_to (std::string &host, std::string &port, int stdDevIdx=-1)
bool connect_to (boost::asio::ip::udp::endpoint &ep, boost::system::error_code &ec, int &step, int stdDevIdx=-1)
void handle_receive_from (const boost::system::error_code &error, size_t bytes_recvd)
void handle_send_to (const boost::system::error_code &asioEC, size_t sentByes)
bool send (mdDatagram &dg)
bool send_to (mdDatagram &dg, int mdStdDevIdx)
size_t send (mdReply &dg, boost::system::error_code &ec)
size_t send_back (mdReply &dg, boost::system::error_code &ec, int &step)
bool send_to (mdReply &dg, int mdStdDevIdx)

Public Attributes

boost::asio::io_service & io_service_
boost::asio::ip::udp::endpoint p_endpoint_
boost::asio::ip::udp::endpoint a_endpoint_
boost::asio::ip::udp::endpoint * ep_
boost::asio::ip::udp::resolver * r
boost::asio::ip::udp::resolver::query * q
boost::asio::ip::udp::socket passive_
boost::asio::ip::udp::socketactive_
boost::asio::ip::udp::sockets_
char ack_ [sizeof(mdDGReply)]
char data_ [MD_MAX_DATAGRAM]
int mdStdDevIdx
mdDatagraminProcess
mdReplyreply
short port


Detailed Description

Definition at line 301 of file mdcommon.h.


Constructor & Destructor Documentation

mdDGChannel::mdDGChannel ( boost::asio::io_service &  io_service,
short  inport,
int  stdDevIdx = myStdDevIdx 
) [inline]

Definition at line 324 of file mdcommon.h.


Member Function Documentation

void mdDGChannel::async_send ( mdDatagram dg  )  [inline]

Definition at line 344 of file mdcommon.h.

bool mdDGChannel::connect_to ( std::string &  host,
std::string &  port,
int  stdDevIdx = -1 
) [inline]

Definition at line 358 of file mdcommon.h.

bool mdDGChannel::connect_to ( boost::asio::ip::udp::endpoint &  ep,
boost::system::error_code &  ec,
int &  step,
int  stdDevIdx = -1 
) [inline]

Definition at line 388 of file mdcommon.h.

void mdDGChannel::handle_receive_from ( const boost::system::error_code &  error,
size_t  bytes_recvd 
)

Definition at line 76 of file clientDaemon.cpp.

void mdDGChannel::handle_send_to ( const boost::system::error_code &  asioEC,
size_t  sentByes 
) [inline]

Definition at line 422 of file mdcommon.h.

bool mdDGChannel::send ( mdDatagram dg  )  [inline]

Definition at line 443 of file mdcommon.h.

bool mdDGChannel::send_to ( mdDatagram dg,
int  mdStdDevIdx 
) [inline]

Definition at line 452 of file mdcommon.h.

size_t mdDGChannel::send ( mdReply dg,
boost::system::error_code &  ec 
) [inline]

Definition at line 461 of file mdcommon.h.

size_t mdDGChannel::send_back ( mdReply dg,
boost::system::error_code &  ec,
int &  step 
) [inline]

Definition at line 470 of file mdcommon.h.

bool mdDGChannel::send_to ( mdReply dg,
int  mdStdDevIdx 
) [inline]

Definition at line 484 of file mdcommon.h.


Member Data Documentation

boost::asio::io_service& mdDGChannel::io_service_

Definition at line 304 of file mdcommon.h.

boost::asio::ip::udp::endpoint mdDGChannel::p_endpoint_

Definition at line 305 of file mdcommon.h.

boost::asio::ip::udp::endpoint mdDGChannel::a_endpoint_

Definition at line 306 of file mdcommon.h.

boost::asio::ip::udp::endpoint* mdDGChannel::ep_

Definition at line 307 of file mdcommon.h.

boost::asio::ip::udp::resolver* mdDGChannel::r

Definition at line 308 of file mdcommon.h.

boost::asio::ip::udp::resolver::query* mdDGChannel::q

Definition at line 309 of file mdcommon.h.

Definition at line 310 of file mdcommon.h.

Definition at line 311 of file mdcommon.h.

Definition at line 312 of file mdcommon.h.

Definition at line 314 of file mdcommon.h.

char mdDGChannel::data_[MD_MAX_DATAGRAM]

Definition at line 315 of file mdcommon.h.

Definition at line 317 of file mdcommon.h.

Definition at line 319 of file mdcommon.h.

Definition at line 320 of file mdcommon.h.

Definition at line 322 of file mdcommon.h.


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

Generated on Mon Jan 10 22:33:44 2011 by  doxygen 1.5.6