Removed windows specific files since the code is the same for linux UdpClient: added basic methods to interact with the variables of that class, added initialization and started with sending and receiving messages UdpServer: added initialization and basic variables Utility: added a bunch of methods to the StringConverter utility class VoidNetClientAPI: SendMessage now checks if message is not an handshake
25 lines
266 B
C++
25 lines
266 B
C++
#ifndef INIT_HPP
|
|
#define INIT_HPP
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "Defs.hpp"
|
|
|
|
|
|
struct Initialization
|
|
{
|
|
static bool Initialize();
|
|
|
|
#ifdef _MSC_VER
|
|
const WSADATA &GetData();
|
|
#endif
|
|
|
|
private:
|
|
#ifdef _MSC_VER
|
|
static WSADATA wsa_data;
|
|
#endif
|
|
};
|
|
|
|
#endif |