Skip to content
Sean Donovan edited this page Oct 24, 2013 · 7 revisions

#Interface for encoding/decoding modules

###For the individual modules on the upstream side Send() - Returns errors - takes in a buffer that is to be encoded - takes in size of data to be encoded - Sends all the data that's requested, either in one or many outbound packets (many URLs for instance)

###For the individual modules on the downstream side Receive() - Returns errors - Takes a buffer that is to be decoded - Takes in size of data to be decoded

###For the decision part of HTPT on the upstream side ReceiveCallback() - Takes a list of decoded data - passes it up to Tor GetSequenceAndIncrement() - Returns sequence number and increments - Used by the various encode/decode modules that implement Send()

###For the decision part of HTPT on the downstream side SendData() - Sends data - Called by the various encode/decode modules

Clone this wiki locally