1
0
mirror of https://github.com/thearcanum/WIFSS synced 2025-07-19 16:00:12 +02:00

Delete server.h

This commit is contained in:
Arcanum
2015-05-01 22:29:00 +02:00
parent 2e1cf31e89
commit 9bafd00f20

@@ -1,46 +0,0 @@
#ifndef __SERVER__
#define __SERVER__
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <netdb.h>
#include <pthread.h>
#include <str.h>
#define PORT 12444
#define BSIZE 512
#define MAX_CLIENTS 4
#define FREE 1
#define TAKEN 2
#define SID -1
#define RUNNING 1
#define STOPPING 2
struct client_t
{
struct sockaddr_in addr;
int sock;
int status;
unsigned int id;
};
struct client_t g_clients[MAX_CLIENTS];
unsigned int count;
pthread_t threads[MAX_CLIENTS];
pthread_t command_thread;
int isvalid(const char *);
void broadcast(int, const char *);
void close_all_connections();
int process_command(const char*, int);
void* command_handler(void* data);
void* on_connection(void *data);
int start_server(void);
#endif