OpENer - Open Source EtherNet/IP(TM) I/O Target Stack  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SocketAddressInfoItem Struct Reference

CPF Sockaddr Item. More...

#include <cpf.h>

Data Fields

CipUint length
 
CipUsint nasin_zero [8]
 
CipUdint sin_addr
 
CipInt sin_family
 
CipUint sin_port
 
CipUint type_id
 

Detailed Description

CPF Sockaddr Item.

Definition at line 56 of file cpf.h.

Field Documentation

CipUint SocketAddressInfoItem::length
CipUsint SocketAddressInfoItem::nasin_zero[8]

Length of 8, Recommended value zero

Definition at line 62 of file cpf.h.

Referenced by CreateCommonPacketFormatStructure(), OpenConsumingPointToPointConnection(), OpenMulticastConnection(), and OpenProducingMulticastConnection().

CipUdint SocketAddressInfoItem::sin_addr

For multicast connections shall be set to the multicast address. For point-to-point shall be treated as don't care, recommended value 0. Big endian order.

Definition at line 61 of file cpf.h.

Referenced by AssembleLinearMessage(), CreateCommonPacketFormatStructure(), OpenConsumingPointToPointConnection(), and OpenMulticastConnection().

CipInt SocketAddressInfoItem::sin_family

Shall be AF_INET = 2 in big endian order

Definition at line 59 of file cpf.h.

Referenced by CreateCommonPacketFormatStructure(), OpenConsumingPointToPointConnection(), OpenMulticastConnection(), and OpenProducingMulticastConnection().

CipUint SocketAddressInfoItem::sin_port

For point-to-point connection this shall be set to the used UDP port (recommended port = 0x08AE). For multicast this shall be set to 0x08AE and treated by the receiver as don't care. Big endian order

Definition at line 60 of file cpf.h.

Referenced by AssembleLinearMessage(), CreateCommonPacketFormatStructure(), OpenConsumingPointToPointConnection(), OpenMulticastConnection(), OpenProducingMulticastConnection(), and OpenProducingPointToPointConnection().


The documentation for this struct was generated from the following file: