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.
SocketReceiveInidcation.cpp
00001 #include "SocketReceiveInidcation.h" 00002 00003 using namespace SmartLabMuRata; 00004 00005 SocketReceiveInidcation::SocketReceiveInidcation(Payload * payload) 00006 : Payload(payload) 00007 { 00008 if (payload == NULL) 00009 return; 00010 00011 receiveLength = GetData()[3] << 8 | GetData()[4]; 00012 } 00013 00014 char SocketReceiveInidcation::GetServerSocketID() 00015 { 00016 return GetData()[2]; 00017 } 00018 00019 int SocketReceiveInidcation::GetPayloadLength() 00020 { 00021 return receiveLength; 00022 } 00023 00024 char SocketReceiveInidcation::GetPayload(int index) 00025 { 00026 return GetData()[index + PAYLOAD_OFFSET]; 00027 } 00028 00029 const char * SocketReceiveInidcation::GetPayload() 00030 { 00031 return GetData() + PAYLOAD_OFFSET; 00032 } 00033 00034 int SocketReceiveInidcation::GetPayloadOffset() 00035 { 00036 return PAYLOAD_OFFSET; 00037 }
Generated on Fri Jul 15 2022 01:02:11 by
1.7.2