From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,12871cc8480bce80 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-03-16 21:28:03 PST Path: bga.com!news.sprintlink.net!cs.utexas.edu!uwm.edu!lll-winken.llnl.gov!decwrl!pa.dec.com!nntpd.lkg.dec.com!flotsm!hunt From: hunt@flotsm.ozy.dec.com (Peter Hunt) Newsgroups: comp.unix.osf.osf1 Subject: Re: DEC OSF/1 X.25 Date: 17 Mar 1995 05:18:20 GMT Organization: Digital Equipment Corporation Sender: hunt@flotsm (Peter Hunt) Distribution: world Message-ID: <3kb62s$cpm@nntpd.lkg.dec.com> References: <795220147snz@cucumber.demon.co.uk> NNTP-Posting-Host: flotsm.ozy.dec.com In article <795220147snz@cucumber.demon.co.uk>, Andrew@cucumber.demon.co.uk (Andrew Gabriel) writes: |>I am porting an application to a DEC Alpha (OSF/1 2.0) |>which uses X.25 (1.0A). When I make a call, I appear to |>have to specify something called "DTE class", along with |>the called (remote) DTE address. A DTE Class is a set of DTEs which are (typically) connected to the same network. For example, the DSYT1 TurboChannel sync device has two synchronous ports. To use both ports, you might get two X.25 lines to the same network, and have two DTEs configured. A DTE Class containing both DTEs would obviate the need for an application to select a specific DTE to get to that network. The application just specifies the DTE Class. If you've configured X.25 using x25setup, there will be a DTE Class for each DTE, and any DTE Classes you've specified as Inbound DTE Classes for your DTEs. To see what DTE Classes you have, and which DTEs belong to them, issue the ncl command: ncl> show x25 access dte class * all char |>If I had more than one link (which I don't, but target |>system might), would they each have a different DTE |>class? Only if the two links went to different networks, or you want the application to be able to select a particular link. |>When I translate a remote hostname into an X.25 |>address (part of my application), should I also allow for |>one (or more) DTE classes to be returned with the remote |>DTE address for passing to the X.25 driver? Yes, although you really only want one DTE Class to be returned. Alternatively, if you have only one DTE Class, you can specify the DTE Class in the Template your application uses to make outgoing calls. |>My application will be making and receiving many calls |>simultaneously from within a single process. Thus I need |>to use the driver in non-blocking mode always. I have |>found a number of problems in the API with non-blocking |>interfaces. So far, I have managed to circumvent them by |>using undocumented techniques (yuk :-( ), but I am far |>from finished yet, and I suspect I may well come up |>against a show-stopper. Has anyone else made any |>extensive use of non-blocking interfacing to the DEC |>OSF/1 X.25 API? Can you be a bit more specific about what you're doing? Basically, the use of signals with the X.25 API isn't supported. However, you can use pthreads to achieve the same result; create a new thread to perform the I/O synchronously. There are examples of this in the XXAEXAMPLES101 subset. -- Peter Hunt (hunt@ozy.dec.com) | On the Internet, Networks Engineering (Aust) | nobody knows you're nude. Digital Equipment Corporation |