cOMS/platform/linux/network/Socket.h
Dennis Eichhorn 15c1033d3f
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (autobuild, c-cpp) (push) Has been cancelled
Microsoft C++ Code Analysis / Analyze (push) Has been cancelled
head fix
2025-04-14 20:23:33 +02:00

26 lines
471 B
C
Executable File

/**
* Jingga
*
* @copyright Jingga
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.app
*/
#ifndef COMS_PLATFORM_LINUX_NETWORK_SOCKET_H
#define COMS_PLATFORM_LINUX_NETWORK_SOCKET_H
#include "../../../stdlib/Types.h"
#include <netdb.h>
#include <unistd.h>
#include <arpa/inet.h>
void socket_close(int32 sd) {
shutdown(sd, SHUT_RDWR);
close(sd);
}
#define socket_prepare() ((void)0)
#define socket_cleanup() ((void)0)
#endif