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

Add ipv6 support for server and client. #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattcarr1011
Copy link

Pass in a parameter for the af_family
Set the socket and address based on that parameter
Adjust the recvfrom and sendto return types based on the parameter

Pass in a parameter for the af_family
Set the socket and address based on that parameter
Adjust the recvfrom and sendto return types based on the parameter
@msoulier msoulier added the pending Not looking at it yet label Mar 22, 2019
@@ -144,7 +152,10 @@ def listen(self, listenip="", listenport=DEF_TFTP_PORT,
# Is the traffic on the main server socket? ie. new session?
if readysock == self.sock:
log.debug("Data ready on our main socket")
buffer, (raddress, rport) = self.sock.recvfrom(MAX_BLKSIZE)
if self.af_family == socket.AF_INET:

Choose a reason for hiding this comment

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

I think this should be 'af_family' and not 'self.af_family'

@msoulier msoulier self-assigned this Oct 26, 2020
9001 added a commit to 9001/partftpy that referenced this pull request Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending Not looking at it yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants