2025-07-30 11:39:38 +02:00
|
|
|
/* SPDX-License-Identifier: MIT OR X11
|
|
|
|
|
*
|
|
|
|
|
* Copyright © 2024 Enrico Weigelt, metux IT consult <info@metux.net>
|
|
|
|
|
*/
|
|
|
|
|
#ifndef _XSERVER_OS_OSSOCK_H_
|
|
|
|
|
#define _XSERVER_OS_OSSOCK_H_
|
|
|
|
|
|
2025-07-30 12:11:39 +02:00
|
|
|
#include <errno.h>
|
|
|
|
|
|
2025-07-30 11:39:38 +02:00
|
|
|
/*
|
|
|
|
|
* os specific initialization of the socket layer
|
|
|
|
|
*/
|
|
|
|
|
void ossock_init(void);
|
|
|
|
|
|
2025-07-30 12:11:39 +02:00
|
|
|
/*
|
|
|
|
|
* os specific socket ioctl function
|
|
|
|
|
*/
|
|
|
|
|
int ossock_ioctl(int fd, unsigned long request, void *arg);
|
|
|
|
|
|
2025-08-04 18:58:27 +02:00
|
|
|
/*
|
|
|
|
|
* os specific socket close function
|
|
|
|
|
*/
|
|
|
|
|
int ossock_close(int fd);
|
|
|
|
|
|
2025-07-30 11:39:38 +02:00
|
|
|
#endif /* _XSERVER_OS_OSSOCK_H_ */
|