Script ganeti_confd :: Class ConfdAsyncUDPServer
[hide private]
[frames] | no frames]

Class ConfdAsyncUDPServer


The confd udp server, suitable for use with asyncore.

Instance Methods [hide private]
 
__init__(self, bind_address, port, processor)
Constructor for ConfdAsyncUDPServer
 
handle_datagram(self, payload_in, ip, port)
Handle an already read udp datagram

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

Inherited from ganeti.daemon.GanetiBaseAsyncoreDispatcher: handle_error

Inherited from asyncore.dispatcher: __getattr__, __repr__, 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, debug, ignore_log_types

Method Details [hide private]

__init__(self, bind_address, port, processor)
(Constructor)

 

Constructor for ConfdAsyncUDPServer

Parameters:
  • bind_address (string) - socket bind address
  • port (int) - udp port
  • processor (confd.server.ConfdProcessor) - ConfdProcessor to use to handle queries
Overrides: asyncore.dispatcher.__init__

handle_datagram(self, payload_in, ip, port)

 

Handle an already read udp datagram

Overrides: ganeti.daemon.AsyncUDPSocket.handle_datagram
(inherited documentation)