Murata RF modules are designed to simplify wireless development and certification by minimizing the amount of RF expertise you need to wirelessly enable a wide range of applications.

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers UDPReceivedIndication.h Source File

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