Anybus® CompactCom 40 - EtherNet/IP IIoT Secure

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 created for each accepted connection. The new socket is connected with the host and the response returns its instance number.

NONBLOCKING 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.

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 byte)

    Data[1]

    Instance number for the connected socket (high byte)

    Data[2]

    Host IP address byte 4

    Data[3]

    Host IP address byte 3

    Data[4]

    Host IP address byte 2

    Data[5]

    Host IP address byte 1

    Data[6]

    Host port number (low byte)

    Data[7]

    Host port number (high byte)