svn commit: samba r13317 - in branches/SAMBA_4_0/source: lib/messaging libnet

simo idra at samba.org
Mon Feb 6 03:15:41 GMT 2006


On Mon, 2006-02-06 at 14:04 +1100, Andrew Bartlett wrote:
> On Mon, 2006-02-06 at 13:04 +1100, tridge at samba.org wrote:
> > Andrew,
> > 
> >  > Create a new function messaging_client_init() which can be used when
> >  > we don't have a server messaging context.  We should replace the
> >  > datagram messages with stream sockets in this case, so we don't have
> >  > to create a unique socket.
> > 
> > I still don't quite understand what you're getting at here. How would
> > using a stream socket instead of a datagram socket avoid the socket
> > creation? All stream versus datagram does is determine:
> 
> Don't a stream socket imply that we can just listen on a file descriptor
> for the reply?  That's certainly my understanding of how winbindd works.
> 
> The datagram socket requires that we register an ID, and create a file.
> Currently, we don't have a good way to ask for a unique ID, assuming
> multiple possible messaging contexts in a client application (therefore
> pid isn't an option).
> 
> I honestly don't care how this is solved, but I didn't want to litter my
> little random() hack in more code, nor prevent the introduction of a
> better solution (no matter how derived).

Time for a port^H^H^H^H^socketmapper :-)

Simo.

-- 
Simo Sorce
Samba Team
email: idra at samba.org
http://samba.org/~idra



More information about the samba-technical mailing list