ryujinx/Ryujinx.HLE/HOS/Services
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
..
Account account: Rework LoadIdTokenCache to auto generate a random JWT token (#2991) 2022-01-11 09:22:20 +01:00
Am Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
Apm
Arp Update to LibHac v0.14.3 (#2925) 2021-12-23 13:55:50 -03:00
Audio UI - Add Volume Controls + Mute Toggle (F2) (#2871) 2021-12-23 13:33:56 -03:00
Bcat Update to LibHac v0.14.3 (#2925) 2021-12-23 13:55:50 -03:00
Bgtc
Bluetooth
BluetoothManager
Caps caps: Stubs GetAlbumFileList0AafeAruidDeprecated and GetAlbumFileList3AaeAruid (#2403) 2021-06-25 00:37:48 +02:00
Cec
Ectx
Erpt
Es
Eupld
Fatal
Friend friend: Stub IsFriendListCacheAvailable and EnsureFriendListAvailable (#2949) 2021-12-30 11:42:22 +01:00
Fs Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
Grc
Hid hid: A little cleanup (#2950) 2021-12-29 14:49:10 +01:00
Ins
Lbl
Ldn
Lm
Loader
Mig
Mii Update to LibHac 0.13.1 (#2475) 2021-08-12 23:56:24 +02:00
Mm
Ncm Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
News
Nfc Fix Amiibo hanging since .NET 6 changes (#2890) 2021-11-30 11:09:32 +01:00
Ngct
Nifm Fix GetAddrInfoWithOptions and some sockets issues (#2936) 2021-12-26 15:17:13 +01:00
Nim
Notification
Npns
Ns account/ns: Implement 13.0.0+ service calls (#2820) 2021-11-24 18:11:50 -03:00
Nv Ensure syncpoints are released and event handles closed on channel close (#2812) 2021-11-04 20:27:21 -03:00
Olsc
Ovln
Pcie
Pctl aoc/am: Cleanup aoc service and stub am calls (#2414) 2021-06-29 18:57:06 +02:00
Pcv clkrst: Stub/Implement IClkrstManager and IClkrstSession calls (#2692) 2021-09-29 01:03:35 +02:00
Pm vi: Unify resolutions values and accurate implementation of them. (#2640) 2021-09-19 12:57:39 +02:00
Prepo prepo: Implement SaveSystemReport and SaveSystemReportWithUser (#2379) 2021-06-23 22:41:44 +02:00
Psc
Ptm
Ro Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
Sdb Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
Settings Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
Sm Fix disposing of IPC sessions server at emulation stop (#2334) 2021-06-29 19:37:13 +02:00
Sockets bsd: Revamp API and make socket abstract (#2960) 2022-01-12 19:31:08 +01:00
Spl infra: Migrate to .NET 6 (#2829) 2021-11-28 21:24:17 +01:00
Srepo
Ssl
SurfaceFlinger EventWait should not signal the event when it returns Success (#2739) 2021-10-19 17:25:32 -03:00
Time Update to LibHac 0.15.0 (#2986) 2022-01-12 12:22:19 +01:00
Usb
Vi infra: Migrate to .NET 6 (#2829) 2021-11-28 21:24:17 +01:00
Wlan
CommandHIpcAttribute.cs
CommandTIpcAttribute.cs
DisposableIpcService.cs Fix disposing of IPC sessions server at emulation stop (#2334) 2021-06-29 19:37:13 +02:00
DummyService.cs
IpcService.cs hle: Tidy-up ServiceNotImplementedException (#2535) 2021-08-11 21:16:42 +02:00
ServerBase.cs Fix disposing of IPC sessions server at emulation stop (#2334) 2021-06-29 19:37:13 +02:00
ServiceAttributes.cs