summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/sockets/sockets.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #9832 from liamwhite/hle-mpliamwhite2023-03-011-6/+1
|\ | | | | service: HLE multiprocess
| * service: refactor server architectureLiam2023-02-211-6/+1
| | | | | | | | Converts services to have their own processes
* | net: translate ECONNRESET network errorMonsterDruide12023-02-211-0/+1
|/
* core, network: Add ability to proxy socket packetsFearlessTobi2022-08-151-4/+2
|
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* service: bsd: Add keepalive socket optiontech-ticks2022-04-071-0/+1
|
* service: Reduce header include overheadMorph2021-10-071-1/+5
|
* network, sockets: Replace `POLL_IN`, `POLL_OUT`, etc. constants with an `enum class PollEvents`comex2020-12-071-9/+14
| | | | | | | | | | | | | | | | | | | | Actually, two enum classes, since for some reason there are two separate yet identical `PollFD` types used in the codebase. I get that one is ABI-compatible with the Switch while the other is an abstract type used for the host, but why not use `WSAPOLLFD` directly for the latter? Anyway, why make this change? Because on Apple platforms, `POLL_IN`, `POLL_OUT`, etc. (with an underscore) are defined as macros in <sys/signal.h>. (This is inherited from FreeBSD.) So defining a variable with the same name causes a compile error. I could just rename the variables, but while I was at it I thought I might as well switch to an enum for stronger typing. Also, change the type used for values copied directly to/from the `events` and `revents` fields of the host *native* `pollfd`/`WSASPOLLFD`, from `u32` to `short`, as `short` is the correct canonical type on both Unix and Windows.
* services/bsd: Implement most of bsd:sReinUsesLisp2020-07-281-1/+5
| | | | | | | | | | | | | This implements: Socket, Poll, Accept, Bind, Connect, GetPeerName, GetSockName, Listen, Fcntl, SetSockOpt, Shutdown, Recv, RecvFrom, Send, SendTo, Write, and Close The implementation was done referencing: SwIPC, switchbrew, testing with libnx and inspecting its code, general information about bsd sockets online, and analysing official software. Not everything from these service calls is implemented, but everything that is not implemented will be logged in some way.
* service/sockets: Add enumerations and structuresReinUsesLisp2020-07-281-0/+79
| | | | Add guest enumerations and structures used in socket services
* service: Use nested namespace specifiers where applicableLioncash2018-04-201-4/+2
| | | | Tidies up namespace declarations
* Start to implement/stub BSD:U and SFDNSRES services (#78)flerovium^-^2018-01-181-0/+16
* bsd: start stubbing bsd:u and sfdnsres * bsd: stubbed RegisterClient * bsd: attempt to get past socket() * bsd: fix some wrong assumptions about IPC * bsd: fix format specifiers * bsd: stubbed Connect() * bsd: stubbed SendTo() * made requested changes * sockets: respect alphabetical order at service installation * run clang-format * bsd: start stubbing bsd:u and sfdnsres * bsd: stubbed RegisterClient * bsd: attempt to get past socket() * bsd: fix some wrong assumptions about IPC * bsd: fix format specifiers * bsd: stubbed Connect() * bsd: stubbed SendTo() * made requested changes * sockets: respect alphabetical order at service installation * run clang-format * run clang-format (2)