19#define MAX_TRANSMIT_SPAN 45
20#define MAX_TRANSMIT_WAIT 93
21#define MAX_LATENCY 100
22#define PROCESSING_DELAY 2
24#define EXCHANGE_LIFETIME 427
25#define NON_LIFETIME 145
28#define MESSAGE_SIZE_UPPER_BOUND 1152
29#define PAYLOAD_SIZE_UPPER_BOUND 1152
70 unsigned int Request_messageID;
71 unsigned int Request_tokenValue;
72 unsigned int Response_messageID;
73 unsigned int Response_tokenValue;
75 unsigned int Response_Received;
76 unsigned int RequestACK_Received;
77 unsigned int Request_Received;
78 unsigned int ResponseACK_Received;
85 unsigned int optionDelta : 4;
86 unsigned int optionLength : 4;
91 unsigned int Version : 2;
92 unsigned int Type : 2;
93 unsigned int TokenLength : 4;
94 unsigned int Code : 8;
95 unsigned int MessageID : 16;
96 unsigned int tokenvalue : 32;
102COAP_Header* fn_NetSim_Application_COAP_GenrateHeader(APP_COAP_INFO* info);
104void fn_NetSim_Application_COAP_AppIn(ptrAPPLICATION_INFO pstruappinfo, NetSim_PACKET* pstruPacket);
106int fn_NetSim_Application_COAP_Start(ptrAPPLICATION_INFO appInfo, NetSim_EVENTDETAILS* pstruEventDetails);
107int fn_NetSim_Application_StartCOAPAPP(ptrAPPLICATION_INFO appInfo,
double time);
108int fn_NetSim_Application_COAP_ProcessRequest(ptrAPPLICATION_INFO pstruappinfo, NetSim_PACKET* pstruPacket);
109int fn_NetSim_Application_COAP_Sent_ACK(ptrAPPLICATION_INFO pstruappinfo, NetSim_PACKET* pstruPacket);
110int fn_NetSim_Application_COAP_Genrate_RequestPacket(ptrAPPLICATION_INFO appInfo, NETSIM_ID nSource, NETSIM_ID nDestination,
double time,
char* PacketType);
111int fn_NetSim_Application_COAP_Genrate_Packet(ptrAPPLICATION_INFO pstruappinfo, NETSIM_ID nSourceId, NETSIM_ID nDestinationId,
double size,
char* PacketType);
112COAP_Header* fn_NetSim_Application_COAP_CopyHeader(COAP_Header* src);