16 #ifndef DABC_SocketTransport
17 #define DABC_SocketTransport
19 #ifndef DABC_SocketThread
23 #ifndef DABC_NetworkTransport
50 virtual long Notify(
const std::string&,
int);
64 virtual void AllocateNet(
unsigned fulloutputqueue,
unsigned fullinputqueue);
Socket addon for handling I/O events.
Specific implementation of network transport for socket.
virtual void OnSendCompleted()
Method called when send operation is completed.
virtual void AllocateNet(unsigned fulloutputqueue, unsigned fullinputqueue)
virtual void SubmitRecv(uint32_t recid)
int fSendStatus
0 - idle, 1 - sending
SocketNetworkInetrface(int fd, bool datagram=false)
virtual ~SocketNetworkInetrface()
int fRecvStatus
0 - idle, 1 - header, 2 - front buffer from recv queue
std::string fMcastAddr
mcast address
uint32_t fRecvRecid
if of the record, used for data receiving (status != 0)
Queue< uint32_t > RecIdsQueue
void SetMCastAddr(const std::string addr)
Set mcast address, required to correctly close socket.
virtual long Notify(const std::string &, int)
Light-weight command interface, which can be used from worker.
virtual void OnSocketError(int msg, const std::string &info)
Generic error handler.
virtual void SubmitSend(uint32_t recid)
uint32_t fSendRecid
id of the active send record
virtual void OnRecvCompleted()
Method called when receive operation is completed.