/* * Copyright (C) 2020-2022 The opuntiaOS Project Authors. * + Contributed by Nikita Melekhin * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef _KERNEL_IO_SOCKETS_SOCKET_H #define _KERNEL_IO_SOCKETS_SOCKET_H #include #include #include #define MAX_SOCKET_COUNT 16 int socket_create(int domain, int type, int protocol, file_descriptor_t* fd, file_ops_t* ops); socket_t* socket_duplicate(socket_t* sock); int socket_put(socket_t* sock); #endif /* _KERNEL_IO_SOCKETS_SOCKET_H */