>The following is an example from R Stevens book "UNP". I am having difficulties
>with the code shown below.
the book has more than a couple of errors in IPv6 section, so be
warned...
>When I try to compile it using......
> gcc tcp_connect.c -lsocket -lnsl -lresolv -lc
>I get the following error messages....
>baja{shroff}% gcc tcp_connect.c -lsocket -lnsl -lresolv -lc
>tcp_connect.c: In function `tcp_connect':
i guess you are using Solaris, but which version?
#include <netdb.h> should be enough for pulling defs for struct
addrinfo.
itojun
--------------------------------------------------------------------
IETF IPng Working Group Mailing List
IPng Home Page: http://playground.sun.com/ipng
FTP archive: ftp://playground.sun.com/pub/ipng
Direct all administrative requests to [EMAIL PROTECTED]
--------------------------------------------------------------------