10 #include <sys/types.h>
13 extern struct string linein;
15 extern int net_read(
const int fatal);
16 extern int net_writen(
const char *
const *) __attribute__ ((nonnull (1)));
18 static inline
int netwrite(const
char *) __attribute__ ((nonnull (1)));
19 extern
int netnwrite(const
char *, const
size_t) __attribute__ ((nonnull (1)));
20 extern
size_t net_readbin(
size_t,
char *) __attribute__ ((nonnull (2)));
21 extern
size_t net_readline(
size_t,
char *) __attribute__ ((nonnull (2)));
48 extern int do_debug_io;
53 netwrite(
const char *
s)
int net_write_multiline(const char *const *)
Definition: netio.c:551
int data_pending(void)
check if there is data ready to be read without blocking
Definition: netio.c:763
char * s
Definition: sstring.h:16
conn_shutdown_type
Definition: netio.h:27
int socketd
Definition: qremote.c:37
int net_read(const int fatal)
read one line from the network
Definition: netio.c:304
int net_writen(const char *const *)
Definition: netio.c:472
size_t net_readbin(size_t, char *)
Definition: netio.c:598
record of a string
Definition: sstring.h:15
definition of string record and headers of corresponding helper functions
void net_conn_shutdown(const enum conn_shutdown_type sd_type)
shutdown the connection and end the program
Definition: qremote.c:77
size_t net_readline(size_t, char *)
Definition: netio.c:640
int netnwrite(const char *, const size_t)
Definition: netio.c:411
time_t timeout
Definition: netio.c:32