diff options
| author | 2022-04-10 23:40:54 +0200 | |
|---|---|---|
| committer | 2022-04-10 23:40:54 +0200 | |
| commit | 4ad6bca31c231ce55268859f8c201372c2895f2d (patch) | |
| tree | 899857b4212bceae59956977648a9c0154367dfb /src/core/network | |
| parent | Merge pull request #8149 from liamwhite/front-face (diff) | |
| parent | service: sfdnsres: Implement DNS address resolution (diff) | |
| download | yuzu-4ad6bca31c231ce55268859f8c201372c2895f2d.tar.gz yuzu-4ad6bca31c231ce55268859f8c201372c2895f2d.tar.xz yuzu-4ad6bca31c231ce55268859f8c201372c2895f2d.zip | |
Merge pull request #8171 from tech-ticks/skyline-improvements
Improvements for game modding with Skyline, DNS resolution
Diffstat (limited to 'src/core/network')
| -rw-r--r-- | src/core/network/network.cpp | 4 | ||||
| -rw-r--r-- | src/core/network/sockets.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/core/network/network.cpp b/src/core/network/network.cpp index a3e0664b9..0784a165d 100644 --- a/src/core/network/network.cpp +++ b/src/core/network/network.cpp | |||
| @@ -600,6 +600,10 @@ Errno Socket::SetReuseAddr(bool enable) { | |||
| 600 | return SetSockOpt<u32>(fd, SO_REUSEADDR, enable ? 1 : 0); | 600 | return SetSockOpt<u32>(fd, SO_REUSEADDR, enable ? 1 : 0); |
| 601 | } | 601 | } |
| 602 | 602 | ||
| 603 | Errno Socket::SetKeepAlive(bool enable) { | ||
| 604 | return SetSockOpt<u32>(fd, SO_KEEPALIVE, enable ? 1 : 0); | ||
| 605 | } | ||
| 606 | |||
| 603 | Errno Socket::SetBroadcast(bool enable) { | 607 | Errno Socket::SetBroadcast(bool enable) { |
| 604 | return SetSockOpt<u32>(fd, SO_BROADCAST, enable ? 1 : 0); | 608 | return SetSockOpt<u32>(fd, SO_BROADCAST, enable ? 1 : 0); |
| 605 | } | 609 | } |
diff --git a/src/core/network/sockets.h b/src/core/network/sockets.h index 5e39e7c54..caaefce7c 100644 --- a/src/core/network/sockets.h +++ b/src/core/network/sockets.h | |||
| @@ -67,6 +67,8 @@ public: | |||
| 67 | 67 | ||
| 68 | Errno SetReuseAddr(bool enable); | 68 | Errno SetReuseAddr(bool enable); |
| 69 | 69 | ||
| 70 | Errno SetKeepAlive(bool enable); | ||
| 71 | |||
| 70 | Errno SetBroadcast(bool enable); | 72 | Errno SetBroadcast(bool enable); |
| 71 | 73 | ||
| 72 | Errno SetSndBuf(u32 value); | 74 | Errno SetSndBuf(u32 value); |