mirror of
https://github.com/brendanhaines/RasPi.git
synced 2024-09-19 11:45:50 -06:00
adds headers and changes port in v2EchoServer.cpp
This commit is contained in:
parent
f8715bd493
commit
853223220a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user