Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recordlayer helpers #19

Closed
wants to merge 10 commits into from
Closed

Recordlayer helpers #19

wants to merge 10 commits into from

Conversation

tomato42
Copy link
Member

add few classes that make handling record layer messages easier

since Python 3 does put .pyc files into different directories than
Python 2, we need to clean both locations
Because the RecordLayer method sendMessage actually sends
a record as-is without any fragmentation or length checks
(with the exception of the implicit length limit enforced by
two-byte length field), a better name for it is "sendRecord"

rename allowed since the API was not part of a stable release yet
Because the RecordLayer method recvMessage actually reads
a record and returns it to caller as-is without any defragmentation
or message splitting, a better name for it is "recvRecord"

rename allowed since the API was not part of a stable release yet
add a wrapper around RecordLayer that makes it easier to handle
sending and receiving messages through it, especially aimed at
handling handshake messages
@tomato42 tomato42 added the review request PR finished, ready for review label Jun 20, 2015
since MessageSocket doesn't return correct record layer header
for the messages it provides, add tests which show those limits
since record layer version may be useful for debugging, do try
to provide at least an approximate version information

providing length is completely useless as it would be just
duplication of len(ret[1])
@landscape-bot
Copy link

Code Health
Repository health increased by 1% when pulling 102cdcb on recordlayer-helpers into 4464125 on master.

@tomato42 tomato42 removed the review request PR finished, ready for review label Jun 27, 2015
@tomato42
Copy link
Member Author

obsoleted by #21

@tomato42 tomato42 closed this Jun 27, 2015
@tomato42 tomato42 deleted the recordlayer-helpers branch February 9, 2018 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants