How to decide the connection of socket is OK or NOT?

I have to try to use select() and check the result of send() and recv(),it seems no use in some cases,Can anyone give me one reliable way?


I don’t understand your question.

Are you asking for some sample code using send/recv and select?

I’ve used send/recv many times under QNX and never had a problem with the results of the calls so I know they work.

If you want to see some nice sample code using send/recv/select with explanations go here (section 6):

This is an easy to use and read guide on network sockets (TCP/IP and UDP) with simple examples that can be copied directly into QNX.I refer to it often as a refresher.


send() packet on the socket connection and watch the reply is the only “reliable” way.