#include #include "net.h" #include "game.h" #include "error.h" #include "filesystem.h" int main(int argc, char* argv[]) { // must provide information if (argc < 2) fatal_error("Usage: ttrts-client HOST"); std::string hostname = argv[1]; sockaddr_in serv_addr; // Server address memset(&serv_addr,0, sizeof(serv_addr)); // Set the server to AF_INET serv_addr.sin_family = AF_INET; // Set our server address port to the port number provided serv_addr.sin_port = htons(TTRTS_PORT); std::cout<<"TTRTS: Connecting to "<= 0 ) { std::cout<<"TTRTS: Waiting for gamestate"<