Choose hostname and port (for server and client part)
This commit is contained in:
@@ -6,16 +6,15 @@
|
||||
#include <sys/socket.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <unistd.h>
|
||||
|
||||
const int PORT = 8080;
|
||||
|
||||
#include <netdb.h>
|
||||
class Client{
|
||||
private:
|
||||
int sock;
|
||||
public:
|
||||
Client() : sock(0){};
|
||||
void run();
|
||||
Client();
|
||||
void run(const std::string& h = "localhost", const unsigned short p = 1024u);
|
||||
int ping(struct sockaddr_in);
|
||||
void game();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user