My Project
Client Class Reference

#include <client.hpp>

Public Member Functions

 Client ()
 
 Client (const std::string &, const int &)
 
void connectToServer ()
 
void disconnectFromServer ()
 
uint16_t sendMessage (const char *)
 
wordle_de::Message receiveMessage ()
 

Private Types

typedef std::function< void(uint16_t fd, char *)> receiveCallbackType
 

Private Attributes

int sock
 
sockaddr_in serverAddr
 
char inputBuffer [INPUT_BUFFER_SIZE]
 

Member Typedef Documentation

◆ receiveCallbackType

typedef std::function<void(uint16_t fd, char *)> Client::receiveCallbackType
private

Constructor & Destructor Documentation

◆ Client() [1/2]

Client::Client ( )

◆ Client() [2/2]

Client::Client ( const std::string &  addr,
const int &  port 
)

Member Function Documentation

◆ connectToServer()

void Client::connectToServer ( )

◆ disconnectFromServer()

void Client::disconnectFromServer ( )
Here is the caller graph for this function:

◆ receiveMessage()

wordle_de::Message Client::receiveMessage ( )
Here is the call graph for this function:

◆ sendMessage()

uint16_t Client::sendMessage ( const char *  msg)

Member Data Documentation

◆ inputBuffer

char Client::inputBuffer[INPUT_BUFFER_SIZE]
private

◆ serverAddr

sockaddr_in Client::serverAddr
private

◆ sock

int Client::sock
private

The documentation for this class was generated from the following files: