Revert back to cleaner copy of server code
This commit is contained in:
parent
83b9990bcc
commit
dcb9d68fb4
3 changed files with 21 additions and 18 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue