mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-01 06:10:00 +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
20 lines
639 B
C++
20 lines
639 B
C++
#pragma once
|
|
|
|
#include "util/types.hpp"
|
|
#include "Emu/Cell/Modules/sceNp.h"
|
|
#include "Emu/Cell/Modules/sceNp2.h"
|
|
|
|
namespace np
|
|
{
|
|
std::string ip_to_string(u32 addr);
|
|
std::string ether_to_string(std::array<u8, 6>& ether);
|
|
|
|
void string_to_npid(std::string_view str, SceNpId& npid);
|
|
void string_to_online_name(std::string_view str, SceNpOnlineName& online_name);
|
|
void string_to_avatar_url(std::string_view str, SceNpAvatarUrl& avatar_url);
|
|
void string_to_communication_id(std::string_view str, SceNpCommunicationId& comm_id);
|
|
|
|
bool is_valid_npid(const SceNpId& npid);
|
|
bool is_same_npid(const SceNpId& npid_1, const SceNpId& npid_2);
|
|
}
|