TwistedAdapter

class obelus.twistedsupport.TwistedAdapter(protocol)

Twisted adapter for Obelus protocols (e.g. AMIProtocol, AGIProtocol), inheriting from twisted.internet.protocol.Protocol.

Pass a protocol instance to create the adapter, which you can e.g. return from your Twisted Factory implementation.

close()

Close the transport’s underlying connection.

write(data)

Write the given data bytes on the transport.