21 lines
293 B
C++
21 lines
293 B
C++
#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 |