From 6e78f9028693fa17bbdc89dfd64111c76c2c9981 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 16 Jan 2012 19:25:07 -0500 Subject: Add proper reader/writer functions to gp_socket --- proxy/src/gp_utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'proxy/src/gp_utils.h') diff --git a/proxy/src/gp_utils.h b/proxy/src/gp_utils.h index 70e3293..09f3f06 100644 --- a/proxy/src/gp_utils.h +++ b/proxy/src/gp_utils.h @@ -28,6 +28,7 @@ #include #include +#include #include "verto.h" #define _(STRING) gettext(STRING) @@ -42,6 +43,8 @@ struct gssproxy_ctx { struct gp_config *config; }; +struct gp_conn; + /* from gp_config.c */ struct gp_config *read_config(char *config_file, int opt_daemonize); @@ -53,5 +56,8 @@ verto_ctx *init_event_loop(void); /* from gp_socket.c */ int init_unix_socket(const char *file_name); void accept_sock_conn(verto_ctx *vctx, verto_ev *ev); +void gp_conn_free(struct gp_conn *conn); +void gp_socket_send_data(verto_ctx *vctx, struct gp_conn *conn, + uint8_t *buffer, size_t buflen); #endif /* _SRV_UTILS_H_ */ -- cgit