IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Member Functions | Friends | List of all members
AsioServer Class Reference

class AsioServer More...

Inheritance diagram for AsioServer:

Public Member Functions

 AsioServer (boost::asio::io_service &ioService)
 constructor More...
 
 ~AsioServer ()
 destructor
 
void readCfg ()
 prepare the reception of the configuration from the client
 
void readHdr ()
 prepare the reception of a header from the client
 
void readData ()
 prepare the reception of a data buffer from the client
 
void writeCfg ()
 deliver the configuration to the client, in response to the delivery of the configuration request from the clientto the server the reception of this object by the client means that the server is ready to exchange (hdr, data)
 
void writeHdr ()
 sends back a header to the client, in response to the reception of (header, data) buffers
 
void writeHdrAndData ()
 sends back (header and data) buffers to the client in one single write operation, in response to the reception of (header, data) buffers
 
void writeData ()
 sends a data buffer to the client, once the preceeding header has been correctly delivered
 
void handle_write_cfg (const boost::system::error_code &ec)
 writeCfg completion callback method
 
void handle_read_cfg (const boost::system::error_code &ec)
 readCfg completion callback method
 
void handle_read_hdr (const boost::system::error_code &ec)
 readHdr completion callback method
 
void handle_read_data (const boost::system::error_code &ec)
 readData completion callback method
 
void handle_write_hdr (const boost::system::error_code &ec)
 writeHdr completion callback method
 
void handle_write_data (const boost::system::error_code &ec)
 completion callback method associated to writeData and writeHdrAndData methods
 

Friends

class AsioAcceptor
 

Detailed Description

class AsioServer

Constructor & Destructor Documentation

◆ AsioServer()

AsioServer::AsioServer ( boost::asio::io_service &  ioService)
inline

constructor

Parameters
ioServiceasio io_service used by the internal socket

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