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 47:69dd5911fc6a, committed 2015-02-02
- Comitter:
- kishino
- Date:
- Mon Feb 02 00:10:06 2015 +0000
- Parent:
- 46:876aa57be518
- Parent:
- 45:50d60753ade3
- Child:
- 48:ee7e07fb401f
- Commit message:
- Merged the changes of parameter of accept.
Changed in this revision
--- a/Socket/TCPSocketServer.cpp Fri Jan 30 03:16:54 2015 +0000
+++ b/Socket/TCPSocketServer.cpp Mon Feb 02 00:10:06 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 Jan 30 03:16:54 2015 +0000
+++ b/Socket/TCPSocketServer.h Mon Feb 02 00:10:06 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
muRata

Murata TypeYD