Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual

Page 147

Advertising
background image

Publication ENET-UM527E-EN-P - October 2006

Socket Interface 147

MSG Destination Element

Create a user-defined data type.

where:

Considerations

Create a separate socket instance (CreateSocket) for each port number
that will accept connections. After you create a socket instances, call
AcceptConnection to wait for an incoming connection request. You
can accept connections on the same port number. Each call to
AcceptConnection returns a different instance number to use when
subsequently reading and writing data.

Element

Element

Description

Instance

DINT

Contains the instance for this service. Use this Instance on subsequent
Read and Write services for this connection.

Addr

structure

A user-defined structure that contains the address for the socket.

Family

INT

Contains the address family. Must be 2.

Port

INT

Contains a local port number.

Addr

DINT

Contains an IP address.

Advertising
This manual is related to the following products: