Midnight Sun Firmware
Loading...
Searching...
No Matches
app_callback.h
1#pragma once
2
3/************************************************************************************************
4 * @file app_callback.h
5 *
6 * @brief Header file defining the Application Callback functions for the server
7 *
8 * @date 2025-01-04
9 * @author Aryan Kashem
10 ************************************************************************************************/
11
12/* Standard library Headers */
13#include <string>
14
15/* Inter-component Headers */
16#include "client_connection.h"
17#include "server.h"
18
19/* Intra-component Headers */
20
36void applicationMessageCallback(Server *server, ClientConnection *client, std::string &message);
37
46
Class that represents a connection between the server and a client.
Definition: client_connection.h:37
Class that represents the central server that connects to multiple clients.
Definition: server.h:39
void applicationMessageCallback(Client *client, std::string &message)
Handle receiving new client messages.
Definition: app_callback.cc:24
void applicationConnectCallback(Client *client)
Handle connecting to the server.
Definition: app_callback.cc:70