Socket and fdMonitor


When using a fdMonitor handler to monitor a socket, how do you tell the difference between a socket accept() (i.e. new client has connected to the server) and read() data available?

According to the doco (and my experimentation!), both events are indicated with a POLLIN event being sent to the FD handler.

ciao, Dave

Yes, your understanding is right. Socket accept() and file read() both are triggered with POLLIN event for fdMonitor Handler.