#include "client.hpp"
#include "definitions.hpp"
#include "util.hpp"
#include "wordle-de.pb.h"
#include <cstdio>
#include <iostream>
#include <mutex>
#include <stdexcept>
#include <string>
#include <thread>
Enumerations | |
enum | State { INPUT_LOGIN , WF_LOGIN_ACK , WF_GAME_STATE , INPUT_GUESS , WF_GUESS_ACK , WF_NEW_WORD } |
Functions | |
std::string | getUsernameFromInput () |
std::string | getPasswordFromInput () |
std::string | getGuessFromInput () |
void | received (uint16_t fd, char *inputBuffer) |
int | main () |
enum State |
std::string getGuessFromInput | ( | ) |
std::string getPasswordFromInput | ( | ) |
std::string getUsernameFromInput | ( | ) |
int main | ( | ) |
void received | ( | uint16_t | fd, |
char * | inputBuffer | ||
) |