next up previous Back to Operating Systems Home Page
Next: Yet again getpeername(2) Up: 1996 term messages Previous: Blocking reads from sockets

Assig. 5 - UNIX STREAM sockets

  > David Ardman writes:
  >
  > There a couple of statements in the assignment sheet which seem to 
  > contradict themselves:

  > 1) ".., communication is implemented using UNIX STREAM sockets"

  > 2) "% broker [-s strategy] [-o outfile] hostname .. where hostname is the 
  >    internet address of the server machine"

  > Are we to use the Unix domain, Internet domain or is the choice 
  > completely up to us?

No no, wait, the text is very clear about the use of TCP/IP, hence of
communication over a network (AF_UNIX socket can be used only for IPC on the
same machine). The phrase "UNIX STREAM sockets" is to be interpreted as
specifying the use of sockets as implemented by BSD UNIX and descendent, of
the stream variety (SOCK_STREAM), and with TCP/IP for transport/network
protos. This as opposed to other implementations of the same idea on different
OSs (e.g. the WinSock standard for comunication over proxy servers, mainly
used under MS-DOG/Windoze).


\ Franco Callari