-
Notifications
You must be signed in to change notification settings - Fork 2.3k
sceNetInet socket remap #19827
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
Merged
Merged
sceNetInet socket remap #19827
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
303a03c
Cleanup, define socket struct
hrydgard 08f2bee
Add socket lookups
hrydgard 0f2bd65
Use the wrapper struct, except in case of poll/select
hrydgard 8505e24
Attempt to implement remapping in select/poll
hrydgard fcb3d63
Fix some closesocket bugs
hrydgard c33ea84
Implement one of ANR2ME's TODOs
hrydgard 3dc2a10
Setting a socket number minimum of 20 solved the Mac problems. I gues…
hrydgard 2c3f7f6
Add a central location for managing HLE sockets
hrydgard 5026e92
Set min socket number to 61. Somehow this fixes Linux??
hrydgard 155a9f9
Turn the socket manager into a class
hrydgard a1744a6
Add SocketManager::CreateSocket for convenience
hrydgard b97b0e4
Add Close method to socket manager
hrydgard c9c5944
Track non-blocking state
hrydgard 698b73d
ImDebugger: Add Np and Sockets debugger windows, on a new Network menu
hrydgard 728268b
Better CreateSocket errro handling
hrydgard 77fcb18
Just some code formatting
hrydgard f84ec05
Strange buildfix
hrydgard cddd3d4
Crashfix with asan, minor
hrydgard 440fa80
Use the correct count parameter for select
hrydgard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
ImDebugger: Add Np and Sockets debugger windows, on a new Network menu
- Loading branch information
commit 698b73dd15e33e70e3da86cc56d4e04f0c4a9502
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
We should store non-blocking state here too, and probably some other value that can be set using
SetSockOpt
too just like non-blocking state, but non-blocking state alone should be sufficient (at least for TCP/UDP socket, while PDP/PTP sockets might need some additional info to be stored, you can checked the AdhocSocket struct for this), since we will need to retrieve the non-blocking state in order to simulate blocking mode later.PS: Sockets are in blocking mode by default after creation, thus the default value should be nonblocking = false.
Uh oh!
There was an error while loading. Please reload this page.
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.
Also, since we have stored the socket protocol here, we can replace these code at sceNetInet.cpp by forwarding only TCP or UDP instead of forwarding both protocol:
I opened both TCP and UDP because i use the native socket directly and there is noway to retrieve the socket protocol (at least the easy way as i remembered).
Edit: oops, you already did this >.<