Website hosting service by Active-Venture.com
  

 Back to Index

6.28.2.5 DatagramHandler

The DatagramHandler class inherits from SocketHandler to support sending logging messages over UDP sockets.

 

 
class DatagramHandler( host, port)
Returns a new instance of the DatagramHandler class intended to communicate with a remote machine whose address is given by host and port.

 

 
emit( )
Pickles the record's attribute dictionary and writes it to the socket in binary format. If there is an error with the socket, silently drops the packet. To unpickle the record at the receiving end into a LogRecord, use the makeLogRecord function.

 

 
makeSocket( )
The factory method of SocketHandler is here overridden to create a UDP socket (socket.SOCK_DGRAM).

 

 
send( s)
Send a pickled string to a socket.
 

  

 

© 2002-2004 Active-Venture.com Webhosting Service

 

Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to http://python.org/doc/

 

Domain registration : Buy domain name or register domain name from $5.95/year only

 

Cheap domain registration : Register domain name or buy domain name, including free domain hosting services

 
  Active-Domain.com offers cheap domain registration, domain name transfer and domain search services