diff options
Diffstat (limited to 'plugins/netutils.h')
-rw-r--r-- | plugins/netutils.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/plugins/netutils.h b/plugins/netutils.h index f5df7af..c560f44 100644 --- a/plugins/netutils.h +++ b/plugins/netutils.h | |||
@@ -36,27 +36,27 @@ | |||
36 | 36 | ||
37 | RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn)); | 37 | RETSIGTYPE socket_timeout_alarm_handler (int) __attribute__((noreturn)); |
38 | 38 | ||
39 | int process_tcp_request2 (char *address, int port, char *sbuffer, | 39 | int process_tcp_request2 (const char *address, int port, |
40 | char *rbuffer, int rsize); | 40 | const char *sbuffer, char *rbuffer, int rsize); |
41 | int process_tcp_request (char *address, int port, char *sbuffer, | 41 | int process_tcp_request (const char *address, int port, |
42 | char *rbuffer, int rsize); | 42 | const char *sbuffer, char *rbuffer, int rsize); |
43 | int process_udp_request (char *address, int port, char *sbuffer, | 43 | int process_udp_request (const char *address, int port, |
44 | char *rbuffer, int rsize); | 44 | const char *sbuffer, char *rbuffer, int rsize); |
45 | int process_request (char *address, int port, int proto, char *sbuffer, | 45 | int process_request (const char *address, int port, int proto, |
46 | char *rbuffer, int rsize); | 46 | const char *sbuffer, char *rbuffer, int rsize); |
47 | 47 | ||
48 | int my_tcp_connect (char *address, int port, int *sd); | 48 | int my_tcp_connect (const char *address, int port, int *sd); |
49 | int my_udp_connect (char *address, int port, int *sd); | 49 | int my_udp_connect (const char *address, int port, int *sd); |
50 | int my_connect (char *address, int port, int *sd, int proto); | 50 | int my_connect (const char *address, int port, int *sd, int proto); |
51 | 51 | ||
52 | int is_host (char *); | 52 | int is_host (const char *); |
53 | int is_addr (char *); | 53 | int is_addr (const char *); |
54 | int resolve_host_or_addr (char *, int); | 54 | int resolve_host_or_addr (const char *, int); |
55 | int is_inet_addr (char *); | 55 | int is_inet_addr (const char *); |
56 | #ifdef USE_IPV6 | 56 | #ifdef USE_IPV6 |
57 | int is_inet6_addr (char *); | 57 | int is_inet6_addr (const char *); |
58 | #endif | 58 | #endif |
59 | int is_hostname (char *); | 59 | int is_hostname (const char *); |
60 | 60 | ||
61 | extern unsigned int socket_timeout; | 61 | extern unsigned int socket_timeout; |
62 | extern int econn_refuse_state; | 62 | extern int econn_refuse_state; |