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

Andrew Bartlett abartlet at samba.org
Mon Feb 6 03:04:58 GMT 2006


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).

Andrew Bartlett
-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20060206/90258089/attachment.bin


More information about the samba-technical mailing list