From ec781f8e842c6fbe7ce2aab1d71716bccf26f690 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Wed, 19 Dec 2001 07:49:25 +0000 Subject: Doc how to reply to messages. (This used to be commit e2b080587c4d6e147cf7274fa7e09e89ae2083c3) --- source3/lib/messages.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source3/lib/messages.c') diff --git a/source3/lib/messages.c b/source3/lib/messages.c index b4fd82139e..f63e2c4766 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -19,13 +19,20 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* this module is used for internal messaging between Samba daemons. +/** + @file messages.c + + This module is used for internal messaging between Samba daemons. The idea is that if a part of Samba wants to do communication with another Samba process then it will do a message_register() of a dispatch function, and use message_send_pid() to send messages to that process. + The dispatch function is given the pid of the sender, and it can + use that to reply by message_send_pid(). See ping_message() for a + simple example. + This system doesn't have any inherent size limitations but is not very efficient for large messages or when messages are sent in very quick succession. -- cgit