mirror of
https://github.com/sal063/AC6_recomp
synced 2026-06-01 01:40:09 -04:00
18 lines
352 B
C++
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
|