home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!hellgate.utah.edu!csn!copper!slate!iarit
- From: iarit@slate.mines.colorado.edu (ARIT ISMAIL)
- Newsgroups: comp.os.linux
- Subject: Re: Unix sockets
- Message-ID: <1993Jan3.215750.26372@slate.mines.colorado.edu>
- Date: 3 Jan 93 21:57:50 GMT
- References: <1i6irdINNmqu@agate.berkeley.edu>
- Organization: Colorado School of Mines
- Lines: 17
-
- If you want to use UNIX sockets ;
-
- ..
- int sock=socket(....)
- address.sun_family=AF_INET;
- strcpy(address.sun_path, "/pipe");
- bind(sock, &address, sizeof(address));
- ..
-
- change ;
- address.sun_family=AF_INET;
- to;
- address.sun_family=AF_UNIX;
-
- AF_INET is for TCP sockets.
-
- ismail
-