
Remarks
"A%" is an integer variable to be assigned to the result.
Value Meaning
0
3000
3004
3007
3012
Normal - data can be sent
Invalid connection number
Connection is closed
Cannot send data
Never run START TCPIP
"N%" is an integer variable in the range of 0 to 3, indicating the connection number.
"L%" is an integer variable, indicating the length of data.
Example
A% = SOCKET_CAN_SEND (0, 10)
See Also
NCLOSE, NWRITE, TCP_ERR_CODE, TCP_OPEN
SOCKET_HAS_DATA
Purpose
To check if the buffer of connection has data or not.
Syntax
A% = SOCKET_HAS_DATA(N%)
Remarks
"A%" is an integer variable to be assigned to the result.
Value Meaning
0
3000
3004
3005
3012
Normal - data in buffer
Invalid connection number
Connection is closed
No data
Never run START TCPIP
"N%" is an integer variable in the range of 0 to 3, indicating the connection number.
Example
A% = SOCKET_HAS_DATA(0)
See Also
NCLOSE, NREAD$, OFF TCPIP, ON TCPIP GOSUB…, TCP_ERR_CODE,
TCP_OPEN
SOCKET_IP$
Purpose
To get network settings.
Syntax
A$ = SOCKET_IP$(port%)
Kommentare zu diesen Handbüchern