NaviServer - programmable web server
4.99  5.0

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_sockcheck(n) 5.0.0a naviserver "NaviServer Built-in Commands"

Name

ns_sockcheck - Check if a socket is connected

Table Of Contents

Synopsis

Description

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.

COMMANDS

ns_sockcheck sockId

EXAMPLES


See Also

ns_sockopen, ns_sockselect

Keywords

NaviServer, connected, global built-in, socket