SNIC UART Interface library: Serial to Wi-Fi library for Murata TypeYD Wi-Fi module. For more information about TypeYD: http://www.murata.co.jp/products/microwave/module/lbwb1zzydz/index.html
Dependents: SNIC-xively-jumpstart-demo SNIC-FluentLogger-example TCPEchoServer murataDemo ... more
Fork of YDwifiInterface by
Revision 45:50d60753ade3, committed 2015-01-30
- Comitter:
- kishino
- Date:
- Fri Jan 30 03:07:35 2015 +0000
- Parent:
- 43:d80bbb12ffe6
- Child:
- 47:69dd5911fc6a
- Commit message:
- Modified the type of the parameter of TCPSocketServer.accept.
Changed in this revision
Socket/TCPSocketServer.cpp | Show annotated file Show diff for this revision Revisions of this file |
Socket/TCPSocketServer.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Socket/TCPSocketServer.cpp Fri Nov 14 00:52:31 2014 +0000 +++ b/Socket/TCPSocketServer.cpp Fri Jan 30 03:07:35 2015 +0000 @@ -156,7 +156,7 @@ return 0; } -int TCPSocketServer::accept(TCPSocketConnection *connection) +int TCPSocketServer::accept(TCPSocketConnection& connection) { C_SNIC_Core *snic_core_p = C_SNIC_Core::getInstance(); int i; @@ -172,7 +172,7 @@ && (con_info_p->parent_socket == mSocketID) ) { // Set socket id - connection->setAcceptSocket( i ); + connection.setAcceptSocket( i ); ret = 0; } }
--- a/Socket/TCPSocketServer.h Fri Nov 14 00:52:31 2014 +0000 +++ b/Socket/TCPSocketServer.h Fri Jan 30 03:07:35 2015 +0000 @@ -52,7 +52,7 @@ \param connection A TCPSocketConnection instance that will handle the incoming connection. \return 0 on success, -1 on failure. */ - int accept(TCPSocketConnection *connection); + int accept(TCPSocketConnection& connection); }; #endif