Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Problem with fcntl

Hi all,

I've a little problem with UDP socket (based on Interniche Stack).

I want set the option "O_NONBLOCK" in my socket, but when

I retrieve the socket options from socket with

flags =fcntl(sock,F_GETFL);

flags is "-1" (not correct) :cool: but the enviroment variable errno is "0".:eek:

Non error occurred during socket creation.

any suggestion? :confused:

Thankx

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Sorry I've done the problem :p.

    the solution is:

    RTOS doesn't support all option in fcntl, so the error is normal :D

    The only option supported is O_NONBLOCK.

    Bye