Go to the documentation of this file.
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_read(const int fatal)
read one line from the network
Definition: netio.c:300
int data_pending(void)
check if there is data ready to be read without blocking
Definition: netio.c:759
size_t net_readline(size_t, char *)
Definition: netio.c:637
size_t net_readbin(size_t, char *)
Definition: netio.c:597
int net_writen(const char *const *)
Definition: netio.c:469
conn_shutdown_type
Definition: netio.h:27
record of a string
Definition: sstring.h:15
definition of string record and headers of corresponding helper functions
int netnwrite(const char *, const size_t)
Definition: netio.c:407
time_t timeout
Definition: netio.c:32
int socketd
Definition: qremote.c:35
char * s
Definition: sstring.h:16
void net_conn_shutdown(const enum conn_shutdown_type sd_type)
shutdown the connection and end the program
Definition: qremote.c:75
int net_write_multiline(const char *const *)
Definition: netio.c:551