[Twisted-Python] conch defer for dataReceived
Alexey Panyovin
a at runtel.ru
Tue Jul 28 23:02:04 MDT 2015
I'm use self made queue for my task.
I'll try to amp.
Thanks glyph!
С уважением,
--
Паневин Алексей
Коммерческий директор
ООО Рантел
e-mail: a at runtel.ru
Tel: +7 (495) 134-30-60 (1011)
Tel: +7 (906) 680-04-04
29.07.15 3:40, Glyph Lefkowitz пишет:
>
>> On Jul 28, 2015, at 10:09 AM, Alexey Panyovin <a at runtel.ru
>> <mailto:a at runtel.ru>> wrote:
>>
>> Hello all.
>> Help me please.
>> Tell me how to wrap in Defer dataReceived.
>> For example, I need to execute a command and send receive data in
>> callback. The only yet I found - to use the session number sent
>> commands and replies received
>
> If you want to have commands and responses, you need a higher-level
> callback than simply dataReceived. This is what, for example, AMP
> <https://twistedmatrix.com/documents/current/api/twisted.protocols.amp.html>
> is for.
>
> -glyph
>
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20150729/bcca0d40/attachment-0002.html>
More information about the Twisted-Python
mailing list