home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / aix / 12907 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  1.5 KB

  1. Path: sparky!uunet!munnari.oz.au!spool.mu.edu!olivea!sgigate!rutgers!noao!rstevens
  2. From: rstevens@noao.edu (W. Richard Stevens)
  3. Newsgroups: comp.unix.aix
  4. Subject: AIX network programming questions
  5. Keywords: nonblocking, TLI
  6. Message-ID: <1992Dec29.174605.23582@noao.edu>
  7. Date: 29 Dec 92 17:46:05 GMT
  8. Sender: news@noao.edu
  9. Organization: National Optical Astronomy Observatories, Tucson, AZ, USA
  10. Lines: 28
  11. Nntp-Posting-Host: gemini.tuc.noao.edu
  12.  
  13. I've been given a guest account on an AIX 3.2.2 system to get some
  14. simple networking programs ported from another Unix host, and have a few
  15. questions.  Unfortunately I don't have a full set of manuals, and it
  16. doesn't appear that all the man pages are online either, so TFM isn't
  17. of much use.
  18.  
  19. (1) What fcntl flag sets a socket nonblocking?  I've tried O_NDELAY
  20.     and O_NONBLOCK, but a subsequent call to accept() with no pending
  21.     connection requests still blocks.  Is something special needed
  22.     under AIX?
  23.  
  24. (2) How do you access the TLI library?  If I don't include "-ltli"
  25.     all the t_xxx functions come up undefined.  If I include this
  26.     library, the programs links OK, but I get the following errors
  27.     when I run the program.
  28.  
  29.     Could not load program ./tcpserv 
  30.     Symbol putmsg in /usr/lib/libtli.a is undefined
  31.     Symbol getmsg in /usr/lib/libtli.a is undefined
  32.     Could not load library libtli.a[shr.o]
  33.     Error was: Exec format error
  34.  
  35.     A related question is what are the transport provider names when
  36.     using TLI?  I couldn't see /dev/tcp or /dev/udp in the filesystem.
  37.  
  38. Thanks,
  39.  
  40.     Rich Stevens  (rstevens@noao.edu)
  41.