2019-01-06 05:38:43 +01:00
|
|
|
/*
|
|
|
|
* IXNetSystem.h
|
|
|
|
* Author: Benjamin Sergeant
|
|
|
|
* Copyright (c) 2019 Machine Zone. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
# include <WS2tcpip.h>
|
|
|
|
# include <WinSock2.h>
|
|
|
|
# include <basetsd.h>
|
|
|
|
# include <io.h>
|
|
|
|
# include <ws2def.h>
|
|
|
|
#else
|
|
|
|
# include <arpa/inet.h>
|
|
|
|
# include <errno.h>
|
|
|
|
# include <netdb.h>
|
|
|
|
# include <netinet/tcp.h>
|
|
|
|
# include <sys/select.h>
|
|
|
|
# include <sys/socket.h>
|
|
|
|
# include <sys/stat.h>
|
|
|
|
# include <sys/time.h>
|
|
|
|
# include <unistd.h>
|
|
|
|
#endif
|
2019-04-26 01:26:53 +02:00
|
|
|
|
|
|
|
namespace ix
|
|
|
|
{
|
|
|
|
bool initNetSystem();
|
|
|
|
bool uninitNetSystem();
|
|
|
|
}
|