mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-03-10 23:45:16 +01:00
Merge 83f2742b38 into 0603d24a91
This commit is contained in:
commit
cc0dece2b5
|
|
@ -58,6 +58,10 @@ nt_p2p_port::nt_p2p_port(u16 port)
|
|||
if (setsockopt(p2p_socket, SOL_SOCKET, SO_RCVBUF, reinterpret_cast<const char*>(&optval), sizeof(optval)) != 0)
|
||||
fmt::throw_exception("Error setsockopt SO_RCVBUF on P2P socket: %s", get_last_error(true));
|
||||
|
||||
optval = 1;
|
||||
if (setsockopt(p2p_socket, SOL_SOCKET, SO_BROADCAST, reinterpret_cast<const char*>(&optval), sizeof(optval)) != 0)
|
||||
fmt::throw_exception("Error setsockopt SO_BROADCAST on P2P socket: %s", get_last_error(true));
|
||||
|
||||
int ret_bind = 0;
|
||||
const u16 be_port = std::bit_cast<u16, be_t<u16>>(port);
|
||||
auto& nph = g_fxo->get<named_thread<np::np_handler>>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue