mirror of
https://github.com/brendanhaines/RasPi.git
synced 2025-04-20 15:57:55 -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 <iostream>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <cstring>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
@ -11,7 +13,7 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
// TCP vars
|
// TCP vars
|
||||||
#define TCP_PORT 51718
|
#define TCP_PORT 51717
|
||||||
int sockfd, newsockfd;
|
int sockfd, newsockfd;
|
||||||
char buffer[ 256 ];
|
char buffer[ 256 ];
|
||||||
struct sockaddr_in serv_addr, cli_addr;
|
struct sockaddr_in serv_addr, cli_addr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user