mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-10-12 02:09:17 +00:00
Add broadcast socket option keeper
This commit is contained in:
@@ -138,6 +138,8 @@ protected:
|
||||
// Socket options value keepers
|
||||
// Non-blocking IO option
|
||||
s32 so_nbio = 0;
|
||||
// Broadcast option
|
||||
s32 so_broadcast = 0;
|
||||
// Error, only used for connection result for non blocking stream sockets
|
||||
s32 so_error = 0;
|
||||
// Unsupported option
|
||||
|
||||
@@ -219,6 +219,10 @@ s32 lv2_socket_p2p::setsockopt(s32 level, s32 optname, const std::vector<u8>& op
|
||||
{
|
||||
so_nbio = native_int;
|
||||
}
|
||||
else if (level == SYS_NET_SOL_SOCKET && optname == SYS_NET_SO_BROADCAST)
|
||||
{
|
||||
so_broadcast = native_int;
|
||||
}
|
||||
|
||||
const u64 key = (static_cast<u64>(level) << 32) | static_cast<u64>(optname);
|
||||
sockopt_cache cache{};
|
||||
|
||||
Reference in New Issue
Block a user