[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::axp-developer

Title:Alpha Developer Support
Notice:[email protected], 800-332-4786
Moderator:HYDRA::SYSTEM
Created:Mon Jun 06 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3722
Total number of notes:11359

3451.0. "Vega Group PLC" by HYDRA::NEWMAN (Chuck Newman, 508/467-5499 (DTN 297), MRO1-3/F26) Tue Apr 08 1997 10:13

    Company Name :  Vega Group PLC
    Contact Name :  Brian Charlton
    Phone        :  
    Fax          :  
    Email        :  [email protected]
    Date/Time in :   8-APR-1997 09:12:57
    Entered by   :  Chuck Newman
    SPE center   :  MRO

    Category     :  UNIX
    OS Version   :  
    System H/W   :  


    Brief Description of Problem:
    -----------------------------

Brian writes:

Date:	 8-APR-1997 07:36:01.94
From:	SMTP%"[email protected]"
Subj:	X.25 for Digital UNIX Systems - Ambiguous documentation
To:	[email protected]

I am currently designing an application to accept X25 SVC connections
and plan to use the X25 for Digital UNIX Systems library (Product No.
AA-PR2KF-TE).

I wish to use the X25WaitForEvent function to block until an incoming
connection request is received. However In order to prevent the function
from blocking indefinately (if no calls arrive) I propose to send a
signal to the application whenever other processing is required.  Am I
correct in assuming that this function will return with an error code of
X25RC_SYSERR and errno set to EINTR if I send a signal to this
application while it is blocking in the X25WaitForEvent function?  This
should be mode effivient that constantly polling BUT the documentation
is a bit vague.  Can you clarify this issue?
T.RTitleUserPersonal
Name
DateLines
3451.1Question entered in OZROCK::X25_OSF note 883HYDRA::NEWMANChuck Newman, 508/467-5499 (DTN 297), MRO1-3/F26Tue Apr 08 1997 11:0124
          <<< OZROCK::DISK$NAC$PUBLIC:[NOTES$LIBRARY]X25_OSF.NOTE;1 >>>
              -< Proudly built by the engineers of NaC Australia >-
================================================================================
Note 883.0 blocking in X25WaitForEvent when signal comes -- what happens? No replies
HYDRA::NEWMAN "Chuck Newman, 508/467-5499 (DTN 297), MRO1-3/F26"  18 lines   9-APR-1997 00:02
--------------------------------------------------------------------------------
A software developer contacted me with the following question.  Would
someone please give me a definitive answer on this?  Thanks!

								-- Chuck Newman
--------------------------------------------------------------------------------
I am currently designing an application to accept X25 SVC connections
and plan to use the X25 for Digital UNIX Systems library (Product No.
AA-PR2KF-TE).

I wish to use the X25WaitForEvent function to block until an incoming
connection request is received. However In order to prevent the function
from blocking indefinately (if no calls arrive) I propose to send a
signal to the application whenever other processing is required.  Am I
correct in assuming that this function will return with an error code of
X25RC_SYSERR and errno set to EINTR if I send a signal to this
application while it is blocking in the X25WaitForEvent function?  This
should be mode effivient that constantly polling BUT the documentation
is a bit vague.  Can you clarify this issue?
3451.2Closing note sent to developerHYDRA::NEWMANChuck Newman, 508/467-5499 (DTN 297), MRO1-3/F26Tue Apr 08 1997 15:0923
From:    AXPDEVELOPER "[email protected]"
To:      [email protected]
Subject: Problem 1997-3451

Brian --

I posed your question to X25 engineering and they provided the following
response.  If you still have questions with this issue, please reference
call number 1997-3451 and my name.  Thanks.

								-- Chuck Newman
--------------------------------------------------------------------------------
With V3.0 of our product, we are supporting the 'select' system call.  This
is the more natural way of handling this requirement.  In truth, your
programmer can use select() in earlier version as well.

Personally, I would urge your programmer to use the select() system call for
this operation, but if they do want to use X25WaitForEvent, then I would
expect that if the call is interrupted whilst it is blocked, then it would
return X25RC_SYSERR with errno set to EINTR.

Alternately, they could use a timeout in the call.  Then you don't need to
worry about sending signals.
3451.3response from vendorHYDRA::NEWMANChuck Newman, 508/467-5499 (DTN 297), MRO1-3/F26Wed Apr 09 1997 10:0119
     Hello Chuck
     
     Thank you very much for taking the time and trouble to respond to my 
     question so quickly.
     
     Your X25 engineering group are correct in saying that using the select 
     function is the most natural way to handle incoming calls.  We had 
     avoided this approach as the documentation gives several examples, 
     none of which use select.  Previous experience prompted us to beleive 
     that the X25 port descriptors would not produce signals when they were 
     ready for IO as was the case when we used DECNet software.
     
     I shall definately try and use the select function as it will simplify 
     the system enormously.  Thanks you onces again for your swift response 
     it was greatly appreciated.
     
     Regards
     
     Brian Charlton - Principal Engineer VEGA Group PLC