TornadoAdapter¶
-
class
obelus.tornadosupport.TornadoAdapter(protocol)¶ Tornado adapter for Obelus protocols (e.g. AMIProtocol, AGIProtocol).
Pass a protocol instance to create the adapter, then call
bind_stream()when you need to wire the protocol to a TornadoIOStreaminstance.-
bind_stream(stream)¶ Bind the protocol to the given IOStream. The stream should be already connected, as the protocol’s connection_made() will be called immediately.
-