20 lines
358 B
C++
20 lines
358 B
C++
#ifndef CLIENT
|
|
#define CLIENT
|
|
|
|
#include <iostream>
|
|
#include <cstring>
|
|
#include <sys/socket.h>
|
|
#include <arpa/inet.h>
|
|
#include <unistd.h>
|
|
#include <netdb.h>
|
|
class Client{
|
|
private:
|
|
int sock;
|
|
public:
|
|
Client();
|
|
void run(const std::string& h = "localhost", const unsigned short p = 1024u);
|
|
int ping(struct sockaddr_in);
|
|
void game();
|
|
};
|
|
|
|
#endif |