Page 1 of 1

AvailableNetworkPortInput(Connection)

Posted: Thu Oct 13, 2011 2:46 am
by RichAlgeni
Syntax:

Result = AvailableNetworkPortInput(Connection)

Description:

Returns the number of remaining bytes in the specified client socket input buffer.

Useful for when a program needs to read data from a client connection multiple times, since calling ReceiveNetworkData blocks when no data is in the receive buffer.

Supported OS

All

Note: currently for Windows, I use the API function ioctlsocket_ to accomplish this.