about summary refs log tree commit diff
path: root/cptc.h
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2024-09-25 00:48:29 +0300
committerNakidai <nakidai@disroot.org>2024-09-25 00:48:48 +0300
commita2fa006f2b20d0c1617eb29c87f3df3acbf94987 (patch)
treeb0f45c5b4bad5ad2f358427d1a16e3fa018ccaaf /cptc.h
downloadcptc-a2fa006f2b20d0c1617eb29c87f3df3acbf94987.tar.gz
cptc-a2fa006f2b20d0c1617eb29c87f3df3acbf94987.zip
Add code
Diffstat (limited to 'cptc.h')
-rw-r--r--cptc.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/cptc.h b/cptc.h
new file mode 100644
index 0000000..aa14648
--- /dev/null
+++ b/cptc.h
@@ -0,0 +1,16 @@
+#ifndef __CPTC_H__
+#define __CPTC_H__
+
+#include <netinet/in.h>
+
+
+enum CPTC_Method
+{
+    CPTC_GET = 'G',
+    CPTC_HEAD = 'H',
+};
+
+void CPTC(const char *address, in_port_t port);
+void CPTC_requestHandler(int fd);
+
+#endif /* __CPTC_H__ */