From: brian.charlton@vegauk.co.uk
Subject: Using X.25 for Digital UNIX Systems to accept X25 SVC connections
Date: 1997/04/08 [thread overview]
Message-ID: <860492625.19180@dejanews.com> (raw)
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
reply other threads:[~1997-04-08 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox