From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,15549507e35766e4,start X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,15549507e35766e4,start X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,15549507e35766e4,start X-Google-Attributes: gidf678f,public From: brian.charlton@vegauk.co.uk Subject: Using X.25 for Digital UNIX Systems to accept X25 SVC connections Date: 1997/04/08 Message-ID: <860492625.19180@dejanews.com>#1/1 X-Deja-AN: 231511688 X-Http-User-Agent: Mozilla/3.0Gold (Win95; I) X-Originating-IP-Addr: 194.217.21.100 (winpc100.vegauk.co.uk) Organization: Deja News Usenet Posting Service X-Article-Creation-Date: Tue Apr 08 09:43:45 1997 GMT X-Authenticated-Sender: brian.charlton@vegauk.co.uk Newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc,comp.unix.programmer I am designing a server application to accept X.25 Switched Virtual Circuits (SVC) using DECs X.25 for Digital UNIX Systems (DEC Product Number :- AA-PR2KF-TE). I wish to make the application as efficient as possible and avoid continuously polling the X.25 port for incoming connections. The following function is available to monitor for an incoming connection:- int X25WaitForEvent(int *port_descriptor, int timer) If the timer parameter is set to zero the function polls the port and returns immediatly. If the timer parameter is set to -1 the function blocks indefinately. If the timer parameter is any other value then the function blocks for that number of seconds. If I use the timer value of zero I must continuously poll the port and consequently waste CPU time. I wish to set the timer parameter to -1 and cause the port to block until a connection arrives. However, the problem with this approach is that if I wish to perform other processing within the application the process is blocked. The documentation os rather vague but states that the function will fail with an error if an operating system error occurs and errno will indicate the error. If I send a signal to the application (from an external process) will it cause the blocking function to exit with an error code of EINTR? I know this is unbeleivably specific but someone else out there must be using this library! -------------------==== Posted via Deja News ====----------------------- http://www.dejanews.com/ Search, Read, Post to Usenet