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.

Facing problem in creating the TCP socket

I am writing a simple application on C6678 which interacts with PC through a TCP IP socket. While creating a socket, socket API is returning with -1 whereas UDP socket creation succeeds. Can anybody help me out in resolving this problem. Am I missing any initialization code specific to TCP.

PS: My network initialization code is same as present in the hua demo example present in the MCSDK installation directory.

Thanks in advance and regards,

Shivakumar