mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 15:45:58 +00:00
Deduplicate NetPlayServer::Send() and NetPlayClient::Send() into ENetUtil::SendPacket().
This commit is contained in:
parent
5f3e8e0f05
commit
66684a392f
4 changed files with 14 additions and 6 deletions
|
@ -5,8 +5,13 @@
|
|||
|
||||
#include <enet/enet.h>
|
||||
|
||||
#include <SFML/Network/Packet.hpp>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
namespace ENetUtil
|
||||
{
|
||||
void WakeupThread(ENetHost* host);
|
||||
int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event);
|
||||
void SendPacket(ENetPeer* socket, const sf::Packet& packet, u8 channel_id);
|
||||
} // namespace ENetUtil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue