ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
mirror_socket.c
Go to the documentation of this file.
1#include <libplatform/question.h>
2#include <libplatform/socket.h>
3
5 return sock >= 0;
6}
7
9 return 0;
10}
11
13 return 0;
14}
15
16ssize_t socket_send(socket_t, const void *, size_t, int) {
17 return -1;
18}
19
20ssize_t socket_recv(socket_t, void *, size_t, int) {
21 return -1;
22}
23
24int socket_poll(struct pollfd *, nfds_t, int64_t) {
25 return 0;
26}
27
29 return false;
30}
31
33 return false;
34}
35
36const char *socket_get_error_string(void) {
37 return "Socket error";
38}
39
41 return 0;
42}
43
45 return false;
46}
int socket_t
int socket_shutdown(socket_t, int)
bool socket_is_would_block_error(int)
ssize_t socket_recv(socket_t, void *, size_t, int)
int socket_poll(struct pollfd *, nfds_t, int64_t)
bool platform_is_interactive(void)
bool socket_is_valid(socket_t sock)
ssize_t socket_send(socket_t, const void *, size_t, int)
int socket_get_last_error(void)
int socket_close(socket_t)
const char * socket_get_error_string(void)
bool socket_is_invalid_socket_error(int)