Package ganeti :: Package confd :: Module client :: Class ConfdAsyncUDPClient
[hide private]
[frames] | no frames]

Class ConfdAsyncUDPClient

source code


Confd udp asyncore client

This is kept separate from the main ConfdClient to make sure it's easy to implement a non-asyncore based client library.

Instance Methods [hide private]
 
__init__(self, client, family)
Constructor for ConfdAsyncUDPClient
source code
 
handle_datagram(self, payload, ip, port)
Handle an already read udp datagram
source code

Inherited from daemon.AsyncUDPSocket: enqueue_send, handle_connect, handle_read, handle_write, process_next_packet, writable

Inherited from daemon.GanetiBaseAsyncoreDispatcher: handle_error

Inherited from asyncore.dispatcher: __getattr__, __repr__, __str__, accept, add_channel, bind, close, connect, create_socket, del_channel, handle_accept, handle_close, handle_connect_event, handle_expt, handle_expt_event, handle_read_event, handle_write_event, listen, log, log_info, readable, recv, send, set_reuse_addr, set_socket

Class Variables [hide private]

Inherited from asyncore.dispatcher: accepting, addr, closing, connected, connecting, debug, ignore_log_types

Method Details [hide private]

__init__(self, client, family)
(Constructor)

source code 

Constructor for ConfdAsyncUDPClient

Parameters:
  • client (ConfdClient) - client library, to pass the datagrams to
Overrides: asyncore.dispatcher.__init__

handle_datagram(self, payload, ip, port)

source code 

Handle an already read udp datagram

Overrides: daemon.AsyncUDPSocket.handle_datagram
(inherited documentation)