![Anybus CompactCom 40 EtherNet/IP Network Manual Download Page 116](http://html1.mh-extra.com/html/anybus/compactcom-40-ethernet-ip/compactcom-40-ethernet-ip_network-manual_2948758116.webp)
116
Doc.Id. HMSI-27-212
Anybus CompactCom 40 EtherNet/IP
Doc.Rev. 1.5
Command Details: Accept
Category
Extended
Details
Command Code.:
13h
Valid for:
Instance
Description
This command accepts incoming connections on a listening TCP socket. A new socket instance is cre-
ated for each accepted connection. The new socket is connected with the host and the response returns
its instance number.
NON-BLOCKING mode:
This command must be issued repeatedly (polled) for incoming connections. If no incoming
connection request exists, the module will respond with error code 0006h (EWOULDBLOCK).
BLOCKING mode:
This command will block until a connection request has been detected.
Note:
This command will only be accepted if there is a free instance to use for accepted connections.
For blocking connections, this command will reserve an instance.
• Command Details
(no data)
• Response Details
Field
Contents
Data[0]
Instance number for the connected socket (low)
Data[1]
Instance number for the connected socket (high)
Data[2]
Host IP address byte 3 (low)
Data[3]
Host IP address byte 2
Data[4]
Host IP address byte 1
Data[5]
Host IP address byte 0 (high)
Data[6]
Host port number (low)
Data[7]
Host port number (high)