2 * Copyright 2019 Intel Corporation
3 * SPDX-License-Identifier: MIT
5 * Socket operations helpers
15 typedef SSIZE_T ssize_t
;
24 int os_socket_accept(int s
);
26 int os_socket_listen_abstract(const char *path
, int count
);
28 ssize_t
os_socket_recv(int socket
, void *buffer
, size_t length
, int flags
);
29 ssize_t
os_socket_send(int socket
, const void *buffer
, size_t length
, int flags
);
31 void os_socket_block(int s
, bool block
);
32 void os_socket_close(int s
);
38 #endif /* _OS_SOCKET_H_ */