SOCKETDISCONNECT
Contents |
Action
Disconnects a socket connection.
Syntax
SOCKETDISCONNECT socket
Remarks
Socket |
The socket number you want to close in the range of 0-3 (0-7 for W5200/W5300). When the socket is already closed, no action will be performed. |
The socketdisconnect statement sends a connection termination request.
You can also use SOCKETCLOSE to close the socket and free it's resources.
After you have closed the connection, you need to use GetSocket in order to use the socket number again.
If you only disconnect the socket, you can used socketconnect witout Getsocket.
The socketdisconnect is only intended for TCP connections. (UDP does not have connections).
This statement is only available for the W5100/W5200/W5300. The W3100A does not support it.
See also
CONFIG TCPIP, SOCKETCLOSE, GETSOCKET , SOCKETCONNECT, SOCKETSTAT , TCPWRITE, TCPWRITESTR, TCPREAD,SOCKETLISTEN , SETTCP
Example
NONE
Languages | English • Deutsch |
---|