diff --git a/clib/tcpnet.cpp b/clib/tcpnet.cpp index bfbf6b9..aaefcbf 100644 --- a/clib/tcpnet.cpp +++ b/clib/tcpnet.cpp @@ -11,6 +11,10 @@ #include "tcpnet.h" +#define TCPNET_BUFFER_SIZE 131072 + + + void error(const char *msg) { // perror(msg); throw std::runtime_error(msg); @@ -20,8 +24,6 @@ void error(const char *msg) { TcpNet::TcpNet() {} -#define TCPNET_BUFFER_SIZE 16256 - int TcpNet::server(int portno, std::function(std::string)> process_request) const { int sockfd, newsockfd;