Revert back to cleaner copy of server code

This commit is contained in:
mdiluzio 2015-01-02 16:09:24 +00:00
parent 83b9990bcc
commit dcb9d68fb4
3 changed files with 21 additions and 18 deletions

View file

@ -1,5 +1,7 @@
#include "client.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -49,6 +51,8 @@ int runClient(int argc, char* argv[])
if (server == NULL)
error("ERROR, no such host");
std::cout<<"Connecting to "<<argv[1]<<std::endl;
// Empty the server address struct
memset(&serv_addr,0, sizeof(serv_addr));