home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / vmsnet / networks / tcpip / multinet / 2573 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  1.4 KB

  1. Path: sparky!uunet!cs.utexas.edu!usc!news.service.uci.edu!unogate!mvb.saic.com!info-multinet
  2. From: KVC@SUMMER.INNOSOFT.COM (Kevin V. Carosso)
  3. Newsgroups: vmsnet.networks.tcp-ip.multinet
  4. Subject: Re: porting Unix code to Multinet
  5. Message-ID: <01GSH25Q9E6U8WXEOZ@SUMMER.INNOSOFT.COM>
  6. Date: 18 Dec 1992 20:08:29 -0800 (PST)
  7. Organization: Info-Multinet<==>Vmsnet.Networks.Tcp-Ip.Multinet Gateway
  8. X-Gateway-Source-Info: Mailing List
  9. Lines: 22
  10.  
  11. > code?  One approach is presumably to use the UCX emulation, where read(),
  12. > close(), and write() all take either sockets or fds.  Is there any
  13. > downside to that?
  14.  
  15. That's what I do, just use DEC's RTL and MultiNet's UCX emulation.
  16.  
  17. > My options seem to be (0) to use the UCX emulation, (1) to duplicate the
  18. > library routines, and have the high level routines call the net- version
  19. > of the library if appropriate, (2) [almost equivalent] to add flag
  20. > parameters or global variables to communicate whether a particular int
  21. > refers to a VAXC fd or a TGV socket, or (3) to decide in the low level
  22. > routine what a particular int refers to (in Wollongong code, I can use
  23. > the kludge that fds are sequentially assigned and so are very small ints,
  24. > whereas sockets are >= 192).  What's my best bet? 
  25.  
  26. I've used various combinations of all your listed options.  (0) is the
  27. easiest and works fine -- I just use DEC's include files and the socket
  28. library routines provided with the C RTL.
  29.  
  30.     /Kevin Carosso
  31.      Innosoft
  32.  
  33.