Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
* Also Padding (0) should be handled special
|
|
* PR's are lossless as I originally thought
* Also packets between 16 and 192 are lossless.
(not sure how/why these things got changed)
|
|
Note: according to the spec, this is the maximum that
tox core ever gets to. Tox core shortens it when there
are more packets being recieved.
This patch also adds some more debug messages.
|
|
|
|
|
|
|
|
(also call this function from dispatchMessage)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Network.Lossless
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This isn't really completely correct; there should be some possibility for
denial of service. The call to setContactAddr is destructive of whatever
information was there previously, but we haven't verified that we're talking to
the real contact at the time it is called.
This problem exists even in the ordinary path where the nodeinfocallback isn't
really requiring proof of anything before throwing out data.
|
|
|
|
|
|
|
|
|