reposerve server half way done
[reposerve] / server / src / client.h
diff --git a/server/src/client.h b/server/src/client.h
new file mode 100644 (file)
index 0000000..10720db
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef CLIENT_H_
+#define CLIENT_H_
+
+enum {
+       CLIENT_DOS              = 1
+};
+
+struct client {
+       int s;
+       unsigned int flags;
+       char buf[16384];
+       int bsz;
+       struct client *next;
+};
+
+int handle_client(struct client *c);
+
+void send_string(struct client *c, const char *s);
+void send_ok(struct client *c, int resp_sz);
+void send_err(struct client *c);
+
+#endif /* CLIENT_H_ */