My Project
server_main.cpp File Reference
#include "game.hpp"
#include "leveldb/options.h"
#include "player.hpp"
#include "server.hpp"
#include <arpa/inet.h>
#include <cstdlib>
#include <cxxopts.hpp>
#include <functional>
#include <iostream>
#include <leveldb/db.h>
#include <map>
#include <netinet/ip.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <wordle-de.pb.h>
Include dependency graph for server_main.cpp:

Functions

void connected (uint16_t fd)
 
void disconnected (uint16_t fd)
 
void received (uint16_t fd, char *buffer)
 
int main (int argc, char *argv[])
 

Variables

Engineeng
 
Serversrv
 
leveldb::DB * db
 
std::map< int, Player * > players
 

Function Documentation

◆ connected()

void connected ( uint16_t  fd)
Here is the caller graph for this function:

◆ disconnected()

void disconnected ( uint16_t  fd)
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

◆ received()

void received ( uint16_t  fd,
char *  buffer 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ db

leveldb::DB* db

◆ eng

Engine* eng

◆ players

std::map<int, Player *> players

◆ srv

Server* srv