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.

socket() returns INVALID_SOCKET

Other Parts Discussed in Thread: TMS320DM6437

Hi everybody!

I'm struggling to establish a TCP communication. I can't even create a socket with these two lines!

SOCKET	stSocketHandle = INVALID_SOCKET;
stSocketHandle = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP ); //always return INVALID_SOCKET

I really don't get why socket() fails at this point. I'm working on a TMS320DM6437.

Can you please advice me, I'm new to TCP links, I certainly miss something obvious!

Thanks in advance,

Arnaud