6 years, 5 months ago.

How to know callback called with which event in TCP socket sigio

Hello,

I see we can register a callback with TCP socket and can get it called whenever there is receive, send or accept on that particular socket. But I dont see any event type being sent to callback so if I have only one callback then how do I know that it is called for receive, send or accept.

socket->sigio(callback(tcp_callback, socket));

Vikas

Be the first to answer this question.