Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
UDPReceivedIndication.h
00001 #ifndef SmartLab_MuRata_Indication_UDPReceivedIndication 00002 #define SmartLab_MuRata_Indication_UDPReceivedIndication 00003 00004 #include "Payload.h" 00005 #include "IPAddress.h" 00006 00007 namespace SmartLabMuRata 00008 { 00009 /// <summary> 00010 /// This event is generated when a UDP server (in unconnected mode) receives a packet. 00011 /// </summary> 00012 class UDPReceivedIndication : public Payload 00013 { 00014 private : 00015 int receiveLength; 00016 00017 public : 00018 static const int PAYLOAD_OFFSET = 11; 00019 00020 UDPReceivedIndication(Payload * payload); 00021 00022 char GetServerSocketID(); 00023 00024 IPAddress GetRemoteIP(); 00025 00026 int GetRemotePort(); 00027 00028 int GetPayloadLength(); 00029 00030 char GetPayload(int index); 00031 00032 const char * GetPayload(); 00033 00034 /// <summary> 00035 /// Get the start index of the payload 00036 /// </summary> 00037 /// <returns></returns> 00038 int GetPayloadOffset(); 00039 }; 00040 } 00041 00042 #endif
Generated on Fri Jul 15 2022 01:02:11 by
1.7.2