[comp.sys.sun] transport level interface programming

inei@cs.glasgow.ac.uk (Nick Nei) (03/27/91)

Can someone help me with calling TLI routines?  My cc cannot find
t_open(), t_bind() and friends.  "Network Programming" says that I must
use the -lnsl_s library but I cannot find it in /usr/lib.

Please e-mail me as I am not a regular reader of this group.

Mail:	Nick Nei, Computing Science Dept., 
	Glasgow Univ., 17 Lilybank Gardens,
      	Glasgow G12 8QQ, UK.  Tel: (041) 339 8855 x 5457
ARPA:	inei%uk.ac.glasgow.dcs@nsfnet-relay.ac.uk USENET: inei@cs.glasgow.uucp

elliss@kira.egr.msu.edu (Stew Ellis) (04/02/91)

inei@cs.glasgow.ac.uk (Nick Nei) writes:

>Can someone help me with calling TLI routines?  My cc cannot find
>t_open(), t_bind() and friends.  "Network Programming" says that I must
>use the -lnsl_s library but I cannot find it in /usr/lib.

You do not specify which release of SunOS you are on, but in 4.1 and 4.1.1
the lib is /usr/lib/libnsl.a, called during link as -lnsl.

The examples in the Network Programming guide or whatever it is called do
not agree with the current device list in /dev/MAKEDEV either.  I believe
they tell you to t_open /dev/tipw or something.  I have not read the
section but have been helping a EE professor and some of his students.
Opening /dev/tcp has not worked yet, so I was going to try /dev/nit next,
following a suggestion by a friend of mine who is an engineer at Sun.
Please let me know how you progress.  Also anyone else who has anything to
offer, I am interested and I do read the group daily.

chris@wg.estec.nl (06/05/91)

I'm trying to find out about transport level interface programming. In
particular I would like to know if the interface proveded by Sun (t_alloc,
t_bind, t_close etc) is peculiar to Sun or if other manufacturers
(particularly dec and apollo) will implement the interface in a compatible
way. Any information will be gratefully received.

Thanks,

Chris