Re: Programming Non blocking communication in linux

2004-09-19 Thread ik
On Saturday 18 September 2004 22:32, guy keren wrote: On Sun, 19 Sep 2004, ik wrote: Hi I'm trying to convert an old MS-Windows program I'd written into Linux, and the program uses Non-Blocking communication. [...snip...] opt = fcntl(nsfd, F_GETFD); this should be F_GETFL

Programming Non blocking communication in linux

2004-09-18 Thread ik
Hi I'm trying to convert an old MS-Windows program I'd written into Linux, and the program uses Non-Blocking communication. Although the connection itself does work under Linux, the Non Blocking part does not. It's still working as a blocking. This is the code I'm making (translated for this

Re: Programming Non blocking communication in linux

2004-09-18 Thread guy keren
On Sun, 19 Sep 2004, ik wrote: Hi I'm trying to convert an old MS-Windows program I'd written into Linux, and the program uses Non-Blocking communication. [...snip...] opt = fcntl(nsfd, F_GETFD); this should be F_GETFL (and later on F_SETFL). by the way, your code will not work