diff options
| author | 2022-10-08 07:00:05 +0200 | |
|---|---|---|
| committer | 2022-10-08 07:00:05 +0200 | |
| commit | 0f4779e2a095b72b7ec7fc0f2abe2cc57f152b76 (patch) | |
| tree | d9b945a8c84ba1441ad1563a78259e6ae95e4c1a /xs_socket.h | |
| parent | More emoticons. (diff) | |
| download | penes-snac2-0f4779e2a095b72b7ec7fc0f2abe2cc57f152b76.tar.gz penes-snac2-0f4779e2a095b72b7ec7fc0f2abe2cc57f152b76.tar.xz penes-snac2-0f4779e2a095b72b7ec7fc0f2abe2cc57f152b76.zip | |
Backport from xs.
Diffstat (limited to 'xs_socket.h')
| -rw-r--r-- | xs_socket.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xs_socket.h b/xs_socket.h index a3fe6a4..d2853a2 100644 --- a/xs_socket.h +++ b/xs_socket.h | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | #define _XS_SOCKET_H | 5 | #define _XS_SOCKET_H |
| 6 | 6 | ||
| 7 | int xs_socket_timeout(int s, double rto, double sto); | 7 | int xs_socket_timeout(int s, double rto, double sto); |
| 8 | int xs_socket_server(char *addr, int port); | 8 | int xs_socket_server(const char *addr, int port); |
| 9 | FILE *xs_socket_accept(int rs); | 9 | FILE *xs_socket_accept(int rs); |
| 10 | 10 | ||
| 11 | 11 | ||
| @@ -40,7 +40,7 @@ int xs_socket_timeout(int s, double rto, double sto) | |||
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | 42 | ||
| 43 | int xs_socket_server(char *addr, int port) | 43 | int xs_socket_server(const char *addr, int port) |
| 44 | /* opens a server socket */ | 44 | /* opens a server socket */ |
| 45 | { | 45 | { |
| 46 | int rs = -1; | 46 | int rs = -1; |