32 lines
565 B
C
32 lines
565 B
C
//
|
|
// Created by Ajurna on 30/07/2025.
|
|
//
|
|
|
|
#ifndef SERVER05_H
|
|
#define SERVER05_H
|
|
#include <winsock2.h>
|
|
|
|
#endif //SERVER05_H
|
|
|
|
typedef struct HandleArgs {
|
|
int connection;
|
|
SOCKET client;
|
|
SOCKET server;
|
|
}handle_args_t;
|
|
|
|
typedef struct BogusLocation {
|
|
size_t start;
|
|
size_t end;
|
|
} bogus_location_t;
|
|
|
|
typedef enum SearchState {
|
|
START,
|
|
END
|
|
} search_state_t;
|
|
|
|
void *handle_server(void *args);
|
|
void *handle_client(void *args);
|
|
void send_message(SOCKET dest, const char *message);
|
|
char *replace_bogus_coin(char *message);
|
|
SOCKET get_chat_socket();
|