SOCKETDISCONNECT/de

From MCS Wiki AVR
< SOCKETDISCONNECT
Revision as of 20:16, 15 February 2013 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

= (**COPIED FROM ENGLISH PAGE**) === 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).

 

 

Notice.jpg
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  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language