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

dev: UDPConn implementation by @nickaxgit #31

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

dev: UDPConn implementation by @nickaxgit #31

wants to merge 4 commits into from

Conversation

soypat
Copy link
Owner

@soypat soypat commented Jul 20, 2024

  • Added UDPConn, commented some areas for easier understanding, suggested a name change or two

  • some tidying of udpConn.go

  • Changes as requested (whitespace, UDP close method, extract anonymous function, errUnsupported returns, function comments etc)

  • fixes two isuues spotted by b0ch3nski

  • more linebreak issues fixed - appologies

  • Tiny fix to itcphandler comment (although it has that c# smell)

* Added UDPConn, commented some areas for easier understanding, suggested a name change or two

* some tidying of udpConn.go

* Changes as requested (whitespace, UDP close method, extract anonymous function, errUnsupported returns, function comments  etc)

* fixes two isuues spotted by b0ch3nski

* more linebreak issues fixed - appologies

* Tiny fix to itcphandler comment  (although it has that c# smell)
Copy link

codecov bot commented Jul 20, 2024

Codecov Report

Attention: Patch coverage is 56.65529% with 127 lines in your changes missing coverage. Please review.

Project coverage is 46.15%. Comparing base (1201bab) to head (7d47ab1).

Files Patch % Lines
stacks/udpconn.go 42.71% 98 Missing and 16 partials ⚠️
stacks/portstack.go 86.48% 4 Missing and 1 partial ⚠️
stacks/port_udp.go 89.65% 2 Missing and 1 partial ⚠️
stacks/ntp_client.go 0.00% 2 Missing ⚠️
stacks/tcpconn.go 75.00% 2 Missing ⚠️
stacks/dns_client.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
+ Coverage   45.99%   46.15%   +0.15%     
==========================================
  Files          29       30       +1     
  Lines        4937     5163     +226     
==========================================
+ Hits         2271     2383     +112     
- Misses       2406     2504      +98     
- Partials      260      276      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@soypat soypat mentioned this pull request Jul 20, 2024
@soypat
Copy link
Owner Author

soypat commented Jul 21, 2024

@nickaxgit Fixed a bug in the checksum calculation- could you test this?

@soypat soypat marked this pull request as ready for review July 21, 2024 15:38
@nickaxgit
Copy link

Will do ... sorry life has been getting in the way a bit the last few days

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.

2 participants