ns_sockcheck - Check if a socket is connected
ns_sockcheck uses recv() or send() calls to check if a socket The sockId is the read or write file id returned by ns_sockopen. This function is useful if you used "ns_sockopen ... -nonblock ...", or after calling ns_sockselect.