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