AvailableNetworkPortInput(Connection)
Posted: Thu Oct 13, 2011 2:46 am
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.
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.