home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22579 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  638 b 

  1. Path: sparky!uunet!usc!cs.utexas.edu!hellgate.utah.edu!csn!copper!slate!iarit
  2. From: iarit@slate.mines.colorado.edu (ARIT ISMAIL)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Unix sockets
  5. Message-ID: <1993Jan3.215750.26372@slate.mines.colorado.edu>
  6. Date: 3 Jan 93 21:57:50 GMT
  7. References: <1i6irdINNmqu@agate.berkeley.edu>
  8. Organization: Colorado School of Mines
  9. Lines: 17
  10.  
  11. If you want to use UNIX sockets ;
  12.  
  13. ..
  14. int sock=socket(....)
  15. address.sun_family=AF_INET;
  16. strcpy(address.sun_path, "/pipe");
  17. bind(sock, &address, sizeof(address));
  18. ..
  19.  
  20. change ;
  21. address.sun_family=AF_INET;
  22. to;
  23. address.sun_family=AF_UNIX;
  24.  
  25. AF_INET is for TCP sockets.
  26.  
  27. ismail
  28.