Package common :: Package zeroconf :: Module client_zeroconf :: Class ClientZeroconf
[hide private]
[frames] | no frames]

Class ClientZeroconf

source code

Instance Methods [hide private]
 
__init__(self, caller) source code
 
connect(self, show, msg) source code
 
remove_announce(self) source code
 
announce(self) source code
 
set_show_msg(self, show, msg) source code
 
resolve_all(self) source code
 
reannounce(self, txt) source code
 
zeroconf_init(self, show, msg) source code
 
disconnect(self) source code
 
start_disconnect(self) source code
 
kill_all_connections(self) source code
 
add_connection(self, connection, ip, port, recipient) source code
 
remove_connection(self, sock_hash) source code
 
start_listener(self, port) source code
 
getRoster(self) source code
 
send(self, stanza, is_message=False, now=False, on_ok=None, on_not_ok=None) source code
 
getAnID(self)
Generate a random id
source code
 
RegisterDisconnectHandler(self, handler)
Register handler that will be called on disconnect
source code
 
UnregisterDisconnectHandler(self, handler)
Unregister handler that is called on disconnect
source code
 
SendAndWaitForResponse(self, stanza, timeout=None, func=None, args=None)
Send stanza and wait for recipient's response to it.
source code
 
SendAndCallForResponse(self, stanza, func=None, args=None)
Put stanza on the wire and call back when recipient replies.
source code
Method Details [hide private]

__init__(self, caller)
(Constructor)

source code 

connect(self, show, msg)

source code 

remove_announce(self)

source code 

announce(self)

source code 

set_show_msg(self, show, msg)

source code 

resolve_all(self)

source code 

reannounce(self, txt)

source code 

zeroconf_init(self, show, msg)

source code 

disconnect(self)

source code 

start_disconnect(self)

source code 

kill_all_connections(self)

source code 

add_connection(self, connection, ip, port, recipient)

source code 

remove_connection(self, sock_hash)

source code 

start_listener(self, port)

source code 

getRoster(self)

source code 

send(self, stanza, is_message=False, now=False, on_ok=None, on_not_ok=None)

source code 

getAnID(self)

source code 
Generate a random id

RegisterDisconnectHandler(self, handler)

source code 
Register handler that will be called on disconnect

UnregisterDisconnectHandler(self, handler)

source code 
Unregister handler that is called on disconnect

SendAndWaitForResponse(self, stanza, timeout=None, func=None, args=None)

source code 

Send stanza and wait for recipient's response to it. Will call transports on_timeout callback if response is not retrieved in time

Be aware: Only timeout of latest call of SendAndWait is active.

SendAndCallForResponse(self, stanza, func=None, args=None)

source code 
Put stanza on the wire and call back when recipient replies. Additional callback arguments can be specified in args.