[K42-discussion] support for AF_UNIX, SOCK_DGRAM sockets

Maria Butrico butrico at us.ibm.com
Tue Sep 13 06:12:43 EST 2005


Andrew, I had started to implement unix domain datagrams, but gave up when
I realized that they were not really needed our target application, which
was ssh.    The answer to your question, is that currently k42 does not
unix datagrams.

(What would need to be done is to add the code at the client and server for
these.  At the client this is not too complicated at all, but some care
should be taken to re-use as much code as possible with streams.  The code
that associates a socket with a socket file, could be re-used.

The server only implements streams.  Adding packets should not be too
difficult, but one problem is when/how to get the correct object (the
correct object in the server is the one associated with the socket file).

Michal had correctly proposed that unix domain socket be re-implemented in
such a way that one server object represent one half of a connected socket,
whereas right now each server object represent a socket pair.   Strictly
speaking, one does not have to do this cleanup, but sure starts to make
more sense for datagrams than from streams.  )


Maria Butrico    <internet or sametime: butrico at us.ibm.com;     Notes:
Maria Butrico/Watson/IBM>




More information about the K42-discussion mailing list