ChkNet Function
Returns number of characters in the reception buffer of a network port.
Syntax
ChkNet ( portNumber As Integer )
Parameters
- portNumber
- Specify the TCP/IP port number (201 to 216).
Return Values
Number of characters received (integer).
If the port cannot receive characters, the following negative values are returned to report the current port status:
- -1: Port is open but communication has not been established
- -2: Port is used by another task
- -3: Port is not open
See Also
CloseNet, OpenNet, Read, Write
ChkNet Function Example
Integer numChars
numChars = ChkNet(201)