cOMS/network/SocketConnection.h
Dennis Eichhorn 39fbcf4300
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (autobuild, c-cpp) (push) Waiting to run
Microsoft C++ Code Analysis / Analyze (push) Waiting to run
linux bug fixes
2025-03-22 01:10:19 +00:00

34 lines
539 B
C
Executable File

/**
* Jingga
*
* @copyright Jingga
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
#ifndef COMS_NETWORK_SOCKET_CONNECTION_H
#define COMS_NETWORK_SOCKET_CONNECTION_H
#include "../stdlib/Types.h"
#if _WIN32
#include <winsock2.h>
#include <ws2ipdef.h>
#else
#include <netdb.h>
#include <unistd.h>
#include <arpa/inet.h>
#endif
struct SocketConnection {
#if _WIN32
SOCKET sd;
#else
int32 sd;
#endif
sockaddr_in6 addr;
uint16 port;
};
#endif