Skip to content

Refactored Client.read_pdu()#198

Merged
code-of-kpp merged 1 commit intopython-smpplib:masterfrom
emnoor:sock-read-refactor
Apr 15, 2022
Merged

Refactored Client.read_pdu()#198
code-of-kpp merged 1 commit intopython-smpplib:masterfrom
emnoor:sock-read-refactor

Conversation

@emnoor
Copy link
Contributor

@emnoor emnoor commented Apr 15, 2022

read exact number of bytes in separate method (_recv_exact), and read raw_len (4 bytes) and raw_pdu (lenght - 4 bytes) with this method.

Fixes #196 (2)

read exact number of bytes in separate method (_recv_exact)
@code-of-kpp code-of-kpp merged commit b9ec1fc into python-smpplib:master Apr 15, 2022
@emnoor emnoor deleted the sock-read-refactor branch April 15, 2022 18:30
Copy link
Collaborator

@eigenein eigenein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this is much better too!

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.

Refactor socket read/write

3 participants