diff options
Diffstat (limited to 'tsocket.h')
-rw-r--r-- | tsocket.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 |