Ryujinx/Ryujinx.HLE/HOS
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
..
Applets Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
Diagnostics/Demangler Misc cleanup (#708) 2019-07-02 04:39:22 +02:00
Ipc ipc: Remove size checks for buffer type 0x21/0x22 (#2387) 2021-06-22 19:32:22 +02:00
Kernel kernel: Implement thread pinning support (#2840) 2021-12-30 10:55:06 +01:00
Services bsd: Revamp API and make socket abstract (#2960) 2022-01-12 19:31:08 +01:00
SystemState Add support for the brazilian portuguese language code (#2792) 2021-10-28 23:06:45 +02:00
Tamper Add Cheat Manager (#2964) 2022-01-03 09:39:43 +01:00
ApplicationLoader.cs Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
ArmProcessContext.cs Initial support for separate GPU address spaces (#2394) 2021-06-29 19:32:02 +02:00
ArmProcessContextFactory.cs Initial support for separate GPU address spaces (#2394) 2021-06-29 19:32:02 +02:00
HomebrewRomFsStream.cs Misc cleanup (#708) 2019-07-02 04:39:22 +02:00
Horizon.cs Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
IdDictionary.cs Implement GPU syncpoints (#980) 2020-04-19 11:25:57 +10:00
LibHacHorizonManager.cs Update to LibHac v0.14.3 (#2925) 2021-12-23 13:55:50 -03:00
ModLoader.cs Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
ProgramLoader.cs Update to LibHac 0.13.1 (#2475) 2021-08-12 23:56:24 +02:00
ResultCode.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
ServiceCtx.cs hos: Cleanup the project (#2634) 2021-09-15 01:24:49 +02:00
TamperMachine.cs Add Cheat Manager (#2964) 2022-01-03 09:39:43 +01:00
UserChannelPersistence.cs Fix exiting emulator with multi programs (#1590) 2020-10-10 00:52:11 +02:00