38 #include <netinet/in.h> 40 #include <sys/socket.h> 41 #include <sys/types.h> 52 #define G_LOG_DOMAIN "md comm" 59 #define TO_SERVER_BUFFER_SIZE 26214400 107 g_debug (
" sendn_to_server: available space (%i) < n (%zu)\n",
114 g_debug (
"-> server %zu bytes\n", n);
146 va_start (args, format);
147 msg = g_strdup_vprintf (format, args);
int sendn_to_server(const void *msg, size_t n)
Send a number of bytes to the server.
unsigned int to_server_buffer_space()
Get the number of characters free in the server output buffer.
int sendf_to_server(const char *format,...)
Format and send a message to the server.
int send_to_server(const char *msg)
Send a message to the server.
A printf like macro for logging communication.