This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Revision 59:cb5c3184c59f, committed 2013-10-02
- Comitter:
- nyatla
- Date:
- Wed Oct 02 08:33:16 2013 +0000
- Parent:
- 58:03b89038b21a
- Child:
- 60:803de2088243
- Child:
- 61:0a6ad5ad7726
- Commit message:
- update mbed API(TcpSocket)
Changed in this revision
mbed/TcpSocket.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed/TcpSocket.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/mbed/TcpSocket.cpp Fri Sep 27 12:47:51 2013 +0000 +++ b/mbed/TcpSocket.cpp Wed Oct 02 08:33:16 2013 +0000 @@ -46,10 +46,14 @@ } return true; } - int TcpSocket::precv(const void* &i_rx,unsigned short i_rx_size) + int TcpSocket::precv(const void* &i_rx) { return NyLPC_cTcpSocket_precv(&this->_inst,&i_rx,TIMEOUT_IN_MSEC); } + int TcpSocket::precv(const char* &i_rx) + { + return NyLPC_cTcpSocket_precv(&this->_inst,(const void**)&i_rx,TIMEOUT_IN_MSEC); + } void TcpSocket::pseek(unsigned short i_rx_seek) { NyLPC_cTcpSocket_pseek(&this->_inst,i_rx_seek);
--- a/mbed/TcpSocket.h Fri Sep 27 12:47:51 2013 +0000 +++ b/mbed/TcpSocket.h Wed Oct 02 08:33:16 2013 +0000 @@ -42,7 +42,8 @@ * n==0 Timeout (connection still established) * n>0 Success. readable data size in i_rx. */ - int precv(const void* &i_rx,unsigned short i_rx_size); + int precv(const void* &i_rx); + int precv(const char* &i_rx); /** * This function seek rx pointer to next. * @param i_rx_size