diff options
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/client.c b/client.c index 6f36539..4327a89 100644 --- a/client.c +++ b/client.c @@ -47,25 +47,6 @@ char *clientAway; static size_t active; -enum Need { - BIT(NeedHandshake), - BIT(NeedNick), - BIT(NeedUser), - BIT(NeedPass), - BIT(NeedCapEnd), -}; - -struct Client { - struct tls *tls; - enum Need need; - size_t consumer; - size_t setPos; - enum Cap caps; - char buf[MessageCap]; - size_t len; - bool error; -}; - struct Client *clientAlloc(struct tls *tls) { struct Client *client = calloc(1, sizeof(*client)); if (!client) err(EX_OSERR, "calloc"); @@ -100,10 +81,6 @@ void clientFree(struct Client *client) { free(client); } -bool clientError(const struct Client *client) { - return client->error; -} - void clientSend(struct Client *client, const char *ptr, size_t len) { if (verbose) fprintf(stderr, "\x1B[34m%.*s\x1B[m", (int)len, ptr); while (len) { |