15 #define TX_RX_MAX_BUF_SIZE 2048
18 int8 data_buf[TX_RX_MAX_BUF_SIZE];
31 int32 SendLen, ReSendLen;
33 ret =
TCPRecv(sock, data_buf, TX_RX_MAX_BUF_SIZE);
36 SendLen =
TCPSend(sock, data_buf, ret);
39 while(SendLen != ret){
48 DBG(
"TCP Socket Close");
58 DBG(
"UDP Socket Close");
61 LOGA(
"TCP Loop-Back Started - sock(%d)",(uint16)sock);
84 ret =
UDPRecv(sock, data_buf, TX_RX_MAX_BUF_SIZE, (uint8*)&destip, &destport);
87 ret =
UDPSend(sock, data_buf, ret, (uint8*)&destip ,destport);
92 DBG(
"UDP Socket Close");
96 DBG(
"TCP Socket Close");
99 LOGA(
"UDP Loop-Back Started - sock(%d)",(uint16)sock);