OpENer - Open Source EtherNet/IP(TM) I/O Target Stack
2.1
|
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 |
CipUint SocketAddressInfoItem::length |
Length shall be 16 bytes
Definition at line 58 of file cpf.h.
Referenced by CreateCommonPacketFormatStructure(), EncodeSockaddrInfoLength(), OpenConsumingPointToPointConnection(), OpenMulticastConnection(), and OpenProducingMulticastConnection().
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().
CipUint SocketAddressInfoItem::type_id |
Either 0x8000 for O->T or 0x8001 for T->O
Definition at line 57 of file cpf.h.
Referenced by AssembleForwardOpenResponse(), AssembleLinearMessage(), CreateCommonPacketFormatStructure(), EncodeSockaddrInfoItemTypeId(), ForwardClose(), OpenConsumingPointToPointConnection(), OpenMulticastConnection(), OpenProducingMulticastConnection(), OpenProducingPointToPointConnection(), and SendConnectedData().