Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!lll-winken!ames!amdahl!nsc!voder!zok!mark From: mark@zok.UUCP (Mark W. Snitily) Newsgroups: comp.unix.i386 Subject: Creating a socket with ISC's libinet.a Message-ID: <403@zok.UUCP> Date: 13 Jan 90 23:52:57 GMT Organization: The distant planet Zok Lines: 35 Has anyone tried to create a socket using the libinet.a that comes with ISC's X11 development package? The code in it's simplest form would be: #include #include main() { int s; s = socket(AF_INET, SOCK_STREAM, 0); } And then linked via "cc -o sock sock.c -linet" (assuming the file is named sock.c). I've tried every combination of format (e.g. AF_INET) and type (e.g. SOCK_STREAM) and the socket() call always returns -1 (meaning error). ISC's X11 server appears to open a Unix domain socket (AF_UNIX with /tmp/.X11-unix/X0). I don't have ISC's TCP/IP package, only the libinet.a library that comes with the X11 libraries. Does anyone know how to create and use a socket with this library? Thanks... -- Mark Mark W. Snitily Consulting Services: 894 Brookgrove Lane Graphics, Operating Systems, Compilers Cupertino, CA 95014 (408) 252-0456 mark@zok.uucp