WINSOCK REFRESH CHANNEL
Checks if a channel has data to be received (if it is open), or if an error occurred.
If used with a channel that is in listen mode, and a following call of WINSOCK CHANNEL DATA WAITING() results to 1,
then there is a connection request pending. You cann accept it with WINSOCK ACCEPT().
If used with a connected channel, then WINSOCK CHANNEL DATA WAITING() = 1 means that there is data to be received by you using
WINSOCK RECV MESSAGE().
Of course you should immediatly check for errors that might have occurred after the refresh call, before continuing using the channel, as it
might crash your application. If you want to perform a refresh on all your channels, use WINSOCK REFRESH CHANNELS instead of looping through all channels.
It is much more faster, because it will check for up to 64 channels at once. Of course you will need to traverse your channels afterwards
to check for data or errors.
SYNTAX
WINSOCK REFRESH CHANNEL channel as Dword
RELATED INFO
WINSOCK command menu
Index
EXAMPLE
Showcase-example 1
Showcase-example 2