Asynch socket I/O in Solaris 2.4?

Asynch socket I/O in Solaris 2.4?

Post by Brett Helb » Thu, 28 Dec 1995 04:00:00



How do I set up a TCP socket to handle asynchronous I/O under Solaris 2.4? I'm
trying to port a program done under SunOS 4.1.3 and the call:

   fnctl(socket,F_SETFL,FASYNC)

doesn't work under Solaris.

I'm sure there's a simple solution but I haven't been able to find it yet.

Please e-mail your responses. Thanks in advance.

--

Systems Engineer
GORCA Systems, Inc.
Cherry Hill, NJ

 
 
 

Asynch socket I/O in Solaris 2.4?

Post by Yao-Lu Tsa » Sat, 30 Dec 1995 04:00:00



> How do I set up a TCP socket to handle asynchronous I/O under Solaris 2.4? I'm
> trying to port a program done under SunOS 4.1.3 and the call:

>    fnctl(socket,F_SETFL,FASYNC)

> doesn't work under Solaris.

fcntl(socket,F_SETOWN,getpid()) ;
fcntl(socket,F_SETFL,FASYNC) ;

===========================================================


                Project Manager at OODB team,
                  Syscom Computer CO., Taiwan.
                Tel : (02) 741-8010 EXT 8857