twisted Package¶
twisted
Package¶
base
Module¶
node
Module¶
websocket
Module¶
-
class
ebu_tt_live.twisted.websocket.
BroadcastClientFactory
(url, consumer=None, producer=None, *args, **kwargs)[source]¶ Bases:
ebu_tt_live.twisted.websocket.BroadcastFactoryCommon
,autobahn.twisted.websocket.WebSocketClientFactory
-
class
ebu_tt_live.twisted.websocket.
BroadcastClientProtocol
[source]¶ Bases:
ebu_tt_live.twisted.websocket.EBUWebsocketProtocolMixin
,autobahn.twisted.websocket.WebSocketClientProtocol
-
connectionLost
(reason)[source]¶ Called when the connection is shut down.
Clear any circular references here, and any external references to this Protocol. The connection has been closed.
@type reason: L{twisted.python.failure.Failure}
-
-
class
ebu_tt_live.twisted.websocket.
BroadcastFactoryCommon
[source]¶ Bases:
object
-
consumer
¶
-
producer
¶
-
-
class
ebu_tt_live.twisted.websocket.
BroadcastServerFactory
(url=None, producer=None, consumer=None)[source]¶ Bases:
ebu_tt_live.twisted.websocket.BroadcastFactoryCommon
,autobahn.twisted.websocket.WebSocketServerFactory
-
real_port_number
= None¶
-
stopFactory
()[source]¶ This will be called before I stop listening on all Ports/Connectors.
This can be overridden to perform ‘shutdown’ tasks such as disconnecting database connections, closing files, etc.
It will be called, for example, before an application shuts down, if it was connected to a port. User code should not call this function directly.
-
-
class
ebu_tt_live.twisted.websocket.
BroadcastServerProtocol
[source]¶ Bases:
ebu_tt_live.twisted.websocket.EBUWebsocketProtocolMixin
,autobahn.twisted.websocket.WebSocketServerProtocol
-
connectionLost
(reason)[source]¶ Called when the connection is shut down.
Clear any circular references here, and any external references to this Protocol. The connection has been closed.
@type reason: L{twisted.python.failure.Failure}
-
-
class
ebu_tt_live.twisted.websocket.
EBUWebsocketProtocolMixin
[source]¶ Bases:
object
This mixin exists because the WS protocol suggested in EBU-3370s1 is agnostic of client-server relationship in the sense that data can be streamed from client to server or the other way around. Based on which action a server/client is doing different functions should be available. This class holds the common logic.
-
action
¶
-
consumer
¶
-
-
class
ebu_tt_live.twisted.websocket.
LegacyBroadcastClientFactory
(url, consumer, channels=None, *args, **kwargs)[source]¶ Bases:
autobahn.twisted.websocket.WebSocketClientFactory
-
channels
¶
-
-
class
ebu_tt_live.twisted.websocket.
LegacyBroadcastClientProtocol
[source]¶ Bases:
autobahn.twisted.websocket.WebSocketClientProtocol
-
class
ebu_tt_live.twisted.websocket.
LegacyBroadcastServerFactory
(url)[source]¶ Bases:
autobahn.twisted.websocket.WebSocketServerFactory
-
stopFactory
()[source]¶ This will be called before I stop listening on all Ports/Connectors.
This can be overridden to perform ‘shutdown’ tasks such as disconnecting database connections, closing files, etc.
It will be called, for example, before an application shuts down, if it was connected to a port. User code should not call this function directly.
-
-
class
ebu_tt_live.twisted.websocket.
LegacyBroadcastServerProtocol
[source]¶ Bases:
autobahn.twisted.websocket.WebSocketServerProtocol
-
connectionLost
(reason)[source]¶ Called when the connection is shut down.
Clear any circular references here, and any external references to this Protocol. The connection has been closed.
@type reason: L{twisted.python.failure.Failure}
-
-
class
ebu_tt_live.twisted.websocket.
TwistedPullProducer
(consumer, custom_producer)[source]¶ Bases:
object
-
class
ebu_tt_live.twisted.websocket.
TwistedWSConsumer
(custom_consumer)[source]¶ Bases:
object
This class wraps the protocol objects.
-
real_port_number
= None¶
-
-
class
ebu_tt_live.twisted.websocket.
TwistedWSPushProducer
(custom_producer)[source]¶ Bases:
object
This is a Twisted Push producer. The concept is related to twisted and it is not the same as our producer and consumer nodes.
-
real_port_number
= None¶
-
-
class
ebu_tt_live.twisted.websocket.
UserInputServerFactory
(url, consumer)[source]¶ Bases:
autobahn.twisted.websocket.WebSocketServerFactory
-
class
ebu_tt_live.twisted.websocket.
UserInputServerProtocol
[source]¶ Bases:
autobahn.twisted.websocket.WebSocketServerProtocol
-
connectionLost
(reason)[source]¶ Called when the connection is shut down.
Clear any circular references here, and any external references to this Protocol. The connection has been closed.
@type reason: L{twisted.python.failure.Failure}
-