aboutsummaryrefslogtreecommitdiff
path: root/tsocket.h
diff options
context:
space:
mode:
Diffstat (limited to 'tsocket.h')
-rw-r--r--tsocket.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/tsocket.h b/tsocket.h
index 5a8826c..5028b04 100644
--- a/tsocket.h
+++ b/tsocket.h
@@ -8,11 +8,12 @@ struct tsocket {
const char *addr;
int port;
};
+typedef struct tsocket tsocket_t;
-struct tsocket *tsocketNew();
-int tsocketBind(struct tsocket *sock, const char *addr, int hostport);
-int tsocketListen(struct tsocket *sock);
-struct tsocket *tsocketAccept(struct tsocket *sock);
-void tsocketDelete(struct tsocket *sock);
+struct tsocket *tsocket_create();
+int tsocket_bind(struct tsocket *sock, const char *addr, int hostport);
+int tsocket_listen(struct tsocket *sock);
+struct tsocket *tsocket_accept(struct tsocket *sock);
+void tsocket_destroy(struct tsocket *sock);
#endif