summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-12-19 07:49:25 +0000
committerMartin Pool <mbp@samba.org>2001-12-19 07:49:25 +0000
commitec781f8e842c6fbe7ce2aab1d71716bccf26f690 (patch)
treedd64188d3dcd6912e8b1dca5c160de35632aa411
parent7110a867a1eb8284f84d55c7507531a10733f5c7 (diff)
downloadsamba-ec781f8e842c6fbe7ce2aab1d71716bccf26f690.tar.gz
samba-ec781f8e842c6fbe7ce2aab1d71716bccf26f690.tar.bz2
samba-ec781f8e842c6fbe7ce2aab1d71716bccf26f690.zip
Doc how to reply to messages.
(This used to be commit e2b080587c4d6e147cf7274fa7e09e89ae2083c3)
-rw-r--r--source3/lib/messages.c9
1 files changed, 8 insertions, 1 deletions
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.