aboutsummaryrefslogtreecommitdiff
path: root/tsocket.h
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-12-16 13:53:35 +0800
committerGuangxiong Lin <[email protected]>2022-12-16 13:53:35 +0800
commit7369505397cdfddf0883e2c24e1652df8bd488fe (patch)
treee961bd1bba0276e2c5f523bf12663b34983c9e51 /tsocket.h
parent49839c88a98d3798f7b18c58f54f26f36cacff38 (diff)
downloadtinyserver-7369505397cdfddf0883e2c24e1652df8bd488fe.tar.gz
tinyserver-7369505397cdfddf0883e2c24e1652df8bd488fe.tar.bz2
tinyserver-7369505397cdfddf0883e2c24e1652df8bd488fe.zip
Refactor file structure
Diffstat (limited to 'tsocket.h')
-rw-r--r--tsocket.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/tsocket.h b/tsocket.h
deleted file mode 100644
index 5028b04..0000000
--- a/tsocket.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <netinet/in.h>
-
-#ifndef __TSOCKET_H
-#define __TSOCKET_H
-
-struct tsocket {
- int fd;
- const char *addr;
- int port;
-};
-typedef struct tsocket tsocket_t;
-
-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