]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1924] Pydoc comment for the group_sendmsg method.
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 7 Feb 2013 10:07:16 +0000 (11:07 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Thu, 7 Feb 2013 10:07:16 +0000 (11:07 +0100)
src/lib/python/isc/cc/session.py

index cfc54d9cb61ac10fd4608af78e30eff9f2a0bcb1..976bfc566520515221ed652d0641e1610740cd4d 100644 (file)
@@ -259,6 +259,24 @@ class Session:
 
     def group_sendmsg(self, msg, group, instance=CC_INSTANCE_WILDCARD,
                       to=CC_TO_WILDCARD, want_answer=False):
+        '''
+        Send a message over the CC session.
+
+        Parameters:
+        - msg The message to send, encoded as python structures (dicts,
+          lists, etc).
+        - group The recipient group to send to.
+        - instance Instance in the group.
+        - to Direct recipient (overrides the above, should contain the
+          lname of the recipient).
+        - want_answer If an answer is requested. If there's no recipient,
+          the message queue would send an error message instead of the
+          answer.
+
+        Return:
+          A sequence number that can be used to wait for an answer
+          (see group_recvmsg).
+        '''
         seq = self._next_sequence()
         self.sendmsg({
             CC_HEADER_TYPE: CC_COMMAND_SEND,