Files
2026-04-17 20:09:41 +03:00

18 lines
352 B
C++

/**
* @file net/socket.h
* @brief Platform-agnostic socket operations
*/
#pragma once
#include <cstdint>
namespace rex::net {
using SocketHandle = int64_t;
constexpr SocketHandle kInvalidSocket = -1;
int socket_close(SocketHandle handle);
int socket_ioctl(SocketHandle handle, uint32_t cmd, uint8_t* arg);
} // namespace rex::net