Customized

Dependents:   MurataTypeYD_RPC_Sample

Fork of SNICInterface_mod by Toyomasa Watarai

Revision:
49:5a5cae02bdf0
Parent:
48:e3a26a484d1c
--- a/Socket/TCPSocketServer.cpp	Tue Jan 27 07:25:21 2015 +0000
+++ b/Socket/TCPSocketServer.cpp	Sat Jan 31 13:41:56 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;
@@ -176,7 +176,7 @@
                 && (con_info_p->parent_socket == mSocketID) )
             {
                 // Set socket id
-                connection->setAcceptSocket( i );
+                connection.setAcceptSocket( i );
                 ret = 0;
                 accepted = true;
                 break;
@@ -192,7 +192,7 @@
             , (con_info_p->from_ip >> 8 )  & 0xff 
             ,  con_info_p->from_ip         & 0xff );
     
-    connection->set_address( remote_addr, (int)con_info_p->from_port );
+    connection.set_address( remote_addr, (int)con_info_p->from_port );
     
     return ret;
 }