projects
/
cascardo
/
rnetproxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added some comments and reminders in connection system.
[cascardo/rnetproxy.git]
/
nethook.h
diff --git
a/nethook.h
b/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
#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*);
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
{
struct _net_hook_t
{
-
G
Conn* conn;
+
HC
Conn* conn;
net_hook_t* peer;
gboolean server;
net_connect connect;
net_close close;
net_hook_t* peer;
gboolean server;
net_connect connect;
net_close close;
- net_write write;
net_read read;
gpointer data;
};
net_read read;
gpointer data;
};
-void nethook_event (
GConn*, GConnEvent*
, gpointer);
+void nethook_event (
HCConn*, HCEvent
, gpointer);
#endif
#endif