5.2.1. vlcp.event.connection¶
Note
This document is generated from the source file.
Created on 2015/6/19
author: | hubo |
---|
-
class
vlcp.event.connection.
Client
(url, protocol, scheduler=None, key=None, certificate=None, ca_certs=None, bindaddress=None)¶ A single connection to a specified target
-
__init__
(url, protocol, scheduler=None, key=None, certificate=None, ca_certs=None, bindaddress=None)¶ Constructor
-
__repr__
(*args, **kwargs)¶ Return repr(self).
-
main
()¶ The main routine method, should be rewritten to an async method
-
-
class
vlcp.event.connection.
Connection
(protocol, sockobj=None, scheduler=None)¶ A connection on a socket
-
__init__
(protocol, sockobj=None, scheduler=None)¶ Constructor
-
__repr__
(*args, **kwargs)¶ Return repr(self).
-
main
()¶ The main routine method, should be rewritten to an async method
-
reconnect
(force=True, connmark=None)¶ Can call without delegate
-
reset
(force=True, connmark=None)¶ Can call without delegate
-
shutdown
(force=False, connmark=-1)¶ Can call without delegate
-
write
(event, ignoreException=True)¶ Can call without delegate
-
-
class
vlcp.event.connection.
ConnectionControlEvent
(*args, **kwargs)¶
-
exception
vlcp.event.connection.
ConnectionResetException
¶
-
class
vlcp.event.connection.
ConnectionWriteEvent
(*args, **kwargs)¶ Event used to send data to a connection
-
canignorenow
()¶ Extra criteria for an event with canignore = False. When this event returns True, the event is safely ignored.
-
-
class
vlcp.event.connection.
ResolveRequestEvent
(*args, **kwargs)¶
-
class
vlcp.event.connection.
ResolveResponseEvent
(*args, **kwargs)¶
-
class
vlcp.event.connection.
TcpServer
(url, protocol, scheduler=None, key=None, certificate=None, ca_certs=None)¶ A server receiving multiple connections
-
__init__
(url, protocol, scheduler=None, key=None, certificate=None, ca_certs=None)¶ Create the routine container.
Parameters: - scheduler – The scheduler. This must be set; if None is used, it must be set with container.bind(scheduler) before using.
- daemon – If daemon = True, the main routine container.main is set to be a daemon routine. A daemon routine does not stop the scheduler from quitting; if all non-daemon routines are quit, the scheduler stops.
-
__repr__
(*args, **kwargs)¶ Return repr(self).
-
main
()¶ The main routine method, should be rewritten to an async method
-
shutdown
(connmark=-1)¶ Can call without delegate
-
startlisten
(connmark=-1)¶ Can call without delegate
-
stoplisten
(connmark=-1)¶ Can call without delegate
-