adds headers and changes port in v2EchoServer.cpp

This commit is contained in:
Brendan Haines 2015-03-08 20:27:17 -06:00
parent f8715bd493
commit 853223220a

View File

@ -1,5 +1,7 @@
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
@ -11,7 +13,7 @@
using namespace std;
// TCP vars
#define TCP_PORT 51718
#define TCP_PORT 51717
int sockfd, newsockfd;
char buffer[ 256 ];
struct sockaddr_in serv_addr, cli_addr;