NaviServer Built-in Commands – 5.0.0a
ns_socknread - Return bytes to be read
This function returns the number of bytes waiting to be read from the specified sockId.
nsd
NaviServer, global built-in, socket