This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

easy web example for continious data transfer over ethernet

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