2015-03-09 17:37:02 +00:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2015-03-09 17:37:02 +00:00
|
|
|
//
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <enet/enet.h>
|
|
|
|
|
2022-10-09 00:25:28 +00:00
|
|
|
#include <SFML/Network/Packet.hpp>
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
2015-03-09 17:37:02 +00:00
|
|
|
namespace ENetUtil
|
|
|
|
{
|
|
|
|
void WakeupThread(ENetHost* host);
|
2015-03-14 14:19:18 +00:00
|
|
|
int ENET_CALLBACK InterceptCallback(ENetHost* host, ENetEvent* event);
|
2022-10-09 00:39:38 +00:00
|
|
|
bool SendPacket(ENetPeer* socket, const sf::Packet& packet, u8 channel_id);
|
2019-05-05 23:48:12 +00:00
|
|
|
} // namespace ENetUtil
|