Command Details: Delete
Category
Extended
Details
Command Code: | 04h |
Valid for: | Object Instance |
Description
This command deletes a previously created socket and closes the connection (if connected).
If the socket is of TCP-type and a connection is established, the connection is terminated with the RST-flag.
To gracefully terminate a TCP-connection, it is recommended to use the ‘Shutdown’-command (see below) before deleting the socket, causing the connection to be closed with the FIN-flag instead.
Command Details
Field
Contents
Comments
CmdExt[0]
Instance number to delete (low)
Instance number of socket that shall be deleted.
CmdExt[1]
Instance number to delete (high)
Response Details
(no data)