mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
Simplify signaling by making Matching2 a layer over normal signaling. Implements UPNP port forwarding Implement sceNpMatching2AbortRequest Fix reported bw in sceNpUtil Hack for Fat Princess binding udp on 3658 Reenable CB for sceNpBasicAddPlayersHistoryAsync Misc fixes
25 lines
467 B
C++
25 lines
467 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
#include <map>
|
|
#include "Utilities/mutex.h"
|
|
#include "Emu/Cell/PPUThread.h"
|
|
|
|
#include "nt_p2p_port.h"
|
|
|
|
struct network_thread
|
|
{
|
|
std::vector<ppu_thread*> s_to_awake;
|
|
shared_mutex s_nw_mutex;
|
|
|
|
shared_mutex list_p2p_ports_mutex;
|
|
std::map<u16, nt_p2p_port> list_p2p_ports{};
|
|
|
|
static constexpr auto thread_name = "Network Thread";
|
|
|
|
void bind_sce_np_port();
|
|
void operator()();
|
|
};
|
|
|
|
using network_context = named_thread<network_thread>;
|