c++ - Porting Windows socket program to Unix: Alternative for winsock32 APIs in unix -


In socket programming, how will the client receive a socket CLOSE event from UNIX thread when the connection is closed?

Is there an API that will inform UNIX thread about the CCCE incident?

As a Windows we have the WSNU NetworkAventApps API that receives event information for the specified socket descriptor. Will there be an equal API in Unix Socket Programming?

Please provide support for queries.

You can track closure events while reading. Read Return 0 (Definitely speaking about "Berkeley Sockets").

// Edit: Use poll or to wait for some events to happen (Data Arrival, Socket Closing. ..).


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -