We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
i am using easy Web example program on mcb2300 evaluation board. i want to modified it for continuous data transfer. this program transfer one frame and tcp socket is getting close. can anybody suggest me how to transfer continuous data without closing tcp scoket.
hi ,
I have same problem.My code: void data_transfer(void) {
if (SocketStatus & SOCK_CONNECTED) // check if somebody has connected to our TCP { if (SocketStatus & SOCK_DATA_AVAILABLE) // check if remote TCP sent data TCPReleaseRxBuffer(); // and throw it away
if (SocketStatus & SOCK_TX_BUF_RELEASED) // check if buffer is free for TX { memcpy(TCP_TX_BUF,"123\n\r",5); TCPTxDataCount=5; TCPTransmitTxBuffer(); TCPClose();
} }
} if i comment TCPClose(); then i transfer the data in continuous mode but it take 500ms for each packet.If you have any solution then please help me.
thanks in advance