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.

UDP Socket creation failed

Other Parts Discussed in Thread: SYSBIOS

hi,

I am using sysbios 6.34.2.18, NDK 2.21.1.38, MCSDK PDK TMS326670 1.1.0.3

I am trying to create a UDP socket.

My program flow is like, fdOpenSession() followed by socket creation. the socket creation is getting failed , where the socket() API returns 0xFFFFFFFF.

what might be the reason for socket creation failure?

Thanks and Regards,

Praveen Kumar J

  • Praveen,

    This would be a working example of socket creation.

    SOCKET Sock;
    fdOpenSession( TaskSelf() );
    /* The follwing routine initializes one TCP socket */
    Sock = socket( AF_INET, SOCK_STREAM, 0 );

    if (Sock == INVALID_SOCKET)
    {
          /* creation failed */
    }

    Vinesh