// All in BIG Endian !!!!
typedef struct {
U8 ProtoID[8]; // protocol ID = "IMS Net"
U16 OpCode; // == IMSNET_OPCODE_POLL
U8 VersionH; // 0
U8 VersionL; // protocol version, set to IMSNET_VERSION
} IMSNET_POLL; // HOST BROADCAST to find unit
typedef struct {
U8 ProtoID[8]; // protocol ID = "IMS Net"
U16 OpCode; // == IMSNET_OPCODE_POLLREPLY
U8 VersionH; // 0
U8 VersionL; // protocol version, set to IMSNET_VERSION
U32 Address; // IP Address
U16 Port; // Port for service
U16 Flags; // See Flags above
U32 Info; // When IMSNET_FLAG_INUSE, IP Address of user
} IMSNET_POLLREPLY; // DEVICE REPLY to discovery broadcast
#pragma pack(pop)
See the sample projects, which all use discovery, for further information.
Comentarios a estos manuales