-
Notifications
You must be signed in to change notification settings - Fork 176
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 support for the 3DS #86
Conversation
src/PlatformSockets.c
Outdated
#ifdef __3DS__ | ||
// binding to wildcard port is broken on the 3DS, so we need to define a port manually | ||
struct sockaddr_in *n3ds_addr = &bindAddr; | ||
n3ds_addr->sin_port = n3ds_udp_port++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sin_port
is expected to be in network byte order, so you should use htons()
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me. Can you squash these commits into one or a few logical changes?
Prevent wildcard port binding on the 3DS Add 3DS threading logic Add 3DS socket logic Bump the connection timeout to 60s for the 3DS
Changes have been squashed! |
Merged, thanks! |
Summary
Adds support for 3DS-specific functionality. So far, I have been able to connect to both NVIDIA gamestream and Sunshine, but the connection is unstable and slow. I'm currently looking into optimizations, but the main functionality ought to be worth upstreaming in the meantime.
Issue
Resolves #33
Changelog