Skip to content
Lucio Santi edited this page Aug 3, 2014 · 3 revisions

PTC WikiCode overviewprotocol

This module implements the protocol core (class PTCProtocol). Besides the handlers invoked by the threads, it also manages the retransmission queue and offers some methods that implement the Socket behavior mentioned on ptc_socket.
The protocol keeps a Soquete instance on the socket variable. Through it, it is possible to inject packets into the network by calling the send method and passing as argument the packet to send. Furthermore, the protocol provides the method send_and_queue, useful for sending as well as enqueuing the packet for eventual retransmissions.

Clone this wiki locally