Close the other end of the connection too.
[cascardo/rnetproxy.git] / nethook.h
index ec1a60f..b428a14 100644 (file)
--- a/nethook.h
+++ b/nethook.h
@@ -20,7 +20,8 @@
 #ifndef NET_HOOK_H
 #define NET_HOOK_H
 
-#include <gnet.h>
+#include <glib.h>
+#include "hcconn.h"
 
 typedef struct _net_hook_t net_hook_t;
 typedef void (*net_connect) (net_hook_t*);
@@ -30,16 +31,15 @@ typedef void (*net_read) (net_hook_t*, gchar*, size_t);
 
 struct _net_hook_t
 {
-  GConn* conn;
+  HCConn* conn;
   net_hook_t* peer;
   gboolean server;
   net_connect connect;
   net_close close;
-  net_write write;
   net_read read;
   gpointer data;
 };
 
-void nethook_event (GConn*, GConnEvent*, gpointer);
+void nethook_event (HCConn*, HCEvent, gpointer);
 
 #endif