This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Look for an example for c6678 NDK socket programming



Hi, I am working on a program that connect the DSP to host PC through socket. I need to set the listening on PC side and let DSP call connect function to establish TCP connection. However the only existing example I find out in MCSDK package uses Daemon. Is there any NDK example available that uses socket not daemon from which I can start with ?

Thanks

  • Hi Fan Zhang1,

    Unfortunately, no there isn't a readily available socket example from MCSDK. However, the usage of TCP sockets and establishing a connection with your PC is definitely supported. Consider taking a look at section 3.4 in the NDK user guide, http://www.ti.com/lit/ug/spru523h/spru523h.pdf. The TCP echo example as illustrated uses socket functions such as socket, connect, send, and recv. These functions should be analogous to doing TCP connections on your PC side.

    Let me know if this helps.

    -Ivan