diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-08-22 13:40:27 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-08-23 21:44:04 +0200 |
commit | 1ce4acb85a3bcb953c0f9cc91d2edc855969948b (patch) | |
tree | c06abb52fef74d375c87a7bdf39e7777bbf1b3b1 /src/client.h | |
parent | add doc/rationale.md (diff) | |
download | cimple-1ce4acb85a3bcb953c0f9cc91d2edc855969948b.tar.gz cimple-1ce4acb85a3bcb953c0f9cc91d2edc855969948b.zip |
add some code
A basic client-server app, the client sends commands as an array of
strings. Hopefully I didn't mess up, and hopefully it'll be useful.
Diffstat (limited to '')
-rw-r--r-- | src/client.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h new file mode 100644 index 0000000..05dec85 --- /dev/null +++ b/src/client.h @@ -0,0 +1,18 @@ +#ifndef __CLIENT_H__ +#define __CLIENT_H__ + +struct settings { + const char *host; + const char *port; +}; + +struct client { + int fd; +}; + +int client_create(struct client *, const struct settings *); +void client_destroy(const struct client *); + +int client_main(const struct client *, int argc, char *argv[]); + +#endif |