Initial commit
This commit is contained in:
21
include/client.hpp
Normal file
21
include/client.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef CLIENT
|
||||
#define CLIENT
|
||||
|
||||
#include <iostream>
|
||||
#include <cstring>
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <unistd.h>
|
||||
|
||||
const int PORT = 8080;
|
||||
|
||||
class Client{
|
||||
private:
|
||||
int sock;
|
||||
public:
|
||||
Client() : sock(0){};
|
||||
void run();
|
||||
int ping(struct sockaddr_in);
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user