for EthernetInterface library compatibility.\\ ** Unoffical fix. may be a problem. **

Dependents:   SNIC-httpclient-example SNIC-ntpclient-example

Fork of SNICInterface by muRata

Revision:
40:b6b10c22a121
Parent:
39:a1233ca02edf
Child:
41:1c1b5ad4d491
--- a/Socket/TCPSocketServer.cpp	Tue Jul 15 02:08:42 2014 +0000
+++ b/Socket/TCPSocketServer.cpp	Tue Jul 15 09:56:37 2014 +0000
@@ -42,7 +42,7 @@
     tagMEMPOOL_BLOCK_T *payload_buf_p = snic_core_p->allocCmdBuf();
     if( payload_buf_p == NULL )
     {
-        printf("bind payload_buf_p NULL\r\n");
+        DEBUG_PRINT("bind payload_buf_p NULL\r\n");
         return -1;
     }
 
@@ -63,14 +63,14 @@
     ret = uartCmdMgr_p->wait();
     if( ret != 0 )
     {
-        printf( "bind failed\r\n" );
+        DEBUG_PRINT( "bind failed\r\n" );
         snic_core_p->freeCmdBuf( payload_buf_p );
         return -1;
     }
     
     if( uartCmdMgr_p->getCommandStatus() != UART_CMD_RES_SNIC_SUCCESS )
     {
-        printf("bind status:%02x\r\n", uartCmdMgr_p->getCommandStatus());
+        DEBUG_PRINT("bind status:%02x\r\n", uartCmdMgr_p->getCommandStatus());
         snic_core_p->freeCmdBuf( payload_buf_p );
         return -1;
     }
@@ -86,7 +86,7 @@
     ret = createSocket( 1, local_addr, port );
     if( ret != 0 )
     {
-        printf("bind error : %d\r\n", ret);
+        DEBUG_PRINT("bind error : %d\r\n", ret);
         return -1;
     }
 
@@ -102,7 +102,7 @@
     tagMEMPOOL_BLOCK_T *payload_buf_p = snic_core_p->allocCmdBuf();
     if( payload_buf_p == NULL )
     {
-        printf("listen payload_buf_p NULL\r\n");
+        DEBUG_PRINT("listen payload_buf_p NULL\r\n");
         return -1;
     }
 
@@ -130,14 +130,14 @@
     ret = uartCmdMgr_p->wait();
     if( ret != 0 )
     {
-        printf( "listen failed\r\n" );
+        DEBUG_PRINT( "listen failed\r\n" );
         snic_core_p->freeCmdBuf( payload_buf_p );
         return -1;
     }
     
     if( uartCmdMgr_p->getCommandStatus() != 0 )
     {
-        printf("listen status:%02x\r\n", uartCmdMgr_p->getCommandStatus());
+        DEBUG_PRINT("listen status:%02x\r\n", uartCmdMgr_p->getCommandStatus());
         snic_core_p->freeCmdBuf( payload_buf_p );
         return -1;
     }