Revision 69b99987 lib/confd/client.py

b/lib/confd/client.py
29 29
and can proceed even if some udp packets are lost. It's up to the user to
30 30
reschedule queries if they haven't received responses and they need them.
31 31

  
32
Example usage:
32
Example usage::
33

  
33 34
  client = ConfdClient(...) # includes callback specification
34 35
  req = confd_client.ConfdClientRequest(type=constants.CONFD_REQ_PING)
35 36
  client.SendRequest(req)
......
43 44
confirming what you already got.
44 45

  
45 46
"""
47

  
46 48
import socket
47 49
import time
48 50
import random
......
97 99
    @param callback: function to call when getting answers
98 100
    @type port: integer
99 101
    @keyword port: confd port (default: use GetDaemonPort)
100
    @type logger: L{logging.Logger}
102
    @type logger: logging.Logger
101 103
    @keyword logger: optional logger for internal conditions
102 104

  
103 105
    """
......
318 320

  
319 321
    @type callback: f(L{ConfdUpcallPayload})
320 322
    @param callback: function to call when getting answers
321
    @type logger: L{logging.Logger}
323
    @type logger: logging.Logger
322 324
    @keyword logger: optional logger for internal conditions
323 325

  
324 326
    """

Also available in: Unified diff