![Anybus CompactCom 40 Common Ethernet Design Manual Download Page 70](http://html1.mh-extra.com/html/anybus/compactcom-40-common-ethernet/compactcom-40-common-ethernet_design-manual_2948756070.webp)
68 (104)
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 be-
low) 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)
Command Details: Bind
Category
Extended
Details
Command Code
10h
Valid for:
Instance
Description
This command binds a socket to a local port.
•
Command Details
Field
Contents
Comments
CmdExt[0]
Requested port number (low)
Set to 0 (zero) to request binding to any free port.
CmdExt[1]
Requested port number (high)
•
Response Details
Field
Contents
Comments
CmdExt[0]
Bound port number (low)
Actual port that the socket was bound to.
CmdExt[1]
Bound port number (high)
Anybus
®
CompactCom
™
40 Common Ethernet Design Guide
HMSI-27–269 2.1