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.

CCS/TMS320C6747: TCP socket invalid

Part Number: TMS320C6747

Tool/software: Code Composer Studio

Hello,

Even i wrote under this subject " https://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/112/t/483051 

no one replied back. I can not create valid tcp socket. My code is as below:

struct timeval to;
int I,tmp;
struct sockaddr_in sin1;
char pBuf[20];
memset(pBuf,20,0);
HANDLE hBuffer;
(void)unused;
// Configure our socket timeout to be 5 seconds
to.tv_sec = 5;
to.tv_usec = 0;

fdOpenSession( (HANDLE)Task_self() );
s = socket(AF_INET, SOCK_STREAMNC, IPPROTO_TCP);
if( s == INVALID_SOCKET )
{
printf("failed socket create (%d)\n",fdError());
return -1;

}

Since socket is invalid, the code prints failed socket create then return.

Could you tell me whats wrong with the code?