version 1.1.1.2, 2021/03/17 00:36:46
|
version 1.1.1.3, 2023/09/27 11:14:54
|
Line 28
|
Line 28
|
#define __NET_H |
#define __NET_H |
|
|
int timeout_connect(int s, const struct sockaddr *name, socklen_t namelen, int timeout); |
int timeout_connect(int s, const struct sockaddr *name, socklen_t namelen, int timeout); |
int netdial(int domain, int proto, const char *local, int local_port, const char *server, int port, int timeout); | int create_socket(int domain, int proto, const char *local, const char *bind_dev, int local_port, const char *server, int port, struct addrinfo **server_res_out); |
int netannounce(int domain, int proto, const char *local, int port); | int netdial(int domain, int proto, const char *local, const char *bind_dev, int local_port, const char *server, int port, int timeout); |
| int netannounce(int domain, int proto, const char *local, const char *bind_dev, int port); |
int Nread(int fd, char *buf, size_t count, int prot); |
int Nread(int fd, char *buf, size_t count, int prot); |
int Nwrite(int fd, const char *buf, size_t count, int prot) /* __attribute__((hot)) */; |
int Nwrite(int fd, const char *buf, size_t count, int prot) /* __attribute__((hot)) */; |
int has_sendfile(void); |
int has_sendfile(void); |