1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-10 19:46:39 +00:00
Ryujinx/Ryujinx.HLE
Mary 366fe2dbb2
bsd: Revamp API and make socket abstract (#2960)
* bsd: Revamp API and make socket abstract

This part of the code was really ancient and needed some love.
As such this commit aims at separating the socket core logic from the IClient class and make it uses more modern APIs to read/write/parse data.

* Address gdkchan's comment

* Move TryConvertSocketOption to WinSockHelper

* Allow reusing old fds and add missing locks around SocketInternal and ShutdownAllSockets

* bsd: ton of changes

- Make sockets per process
- Implement eventfds
- Rework Poll for support of eventfds
- Handle protocol auto selection by type (used by gRPC)
- Handle IPv6 socket creation

* Address most of gdkchan comments

* Fix inverted read logic for BSD socket read

* bsd: Make Poll abstract via IBsdSocketPollManager

* bsd: Improve naming of everything

* Fix build issue from last commit (missed to save on VC)

* Switch BsdContext registry to a concurrent dictionary

* bsd: Implement socket creation flags logic and the non blocking flag

* Remove unused enum from previous commit

* bsd: Fix poll logic when 0 fds are present for a given poll manager and when timeout is very small (or 0)

* Address gdkchan's comment
2022-01-12 19:31:08 +01:00
..
Exceptions hos: Cleanup the project (#2634) 2021-09-15 01:24:49 +02:00
FileSystem Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
HOS bsd: Revamp API and make socket abstract (#2960) 2022-01-12 19:31:08 +01:00
Loaders Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
Ui infra: Migrate to .NET 6 (#2829) 2021-11-28 21:24:17 +01:00
Utilities sfdnsres: Fix serialization issues (#2992) 2022-01-12 17:43:00 +01:00
HLEConfiguration.cs Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
Homebrew.npdm Better process implementation (#491) 2018-11-28 20:18:09 -02:00
MemoryConfiguration.cs hos: Cleanup the project (#2634) 2021-09-15 01:24:49 +02:00
PerformanceStatistics.cs Adjustments to framerate metric and addition of frametime (#2638) 2021-09-15 02:26:10 +02:00
Ryujinx.HLE.csproj Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
Switch.cs Add Cheat Manager (#2964) 2022-01-03 09:39:43 +01:00