bigger buffer in tcpnet
will be improved in future
This commit is contained in:
@@ -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::pair<bool, std::string>(std::string)> process_request) const {
|
||||
int sockfd, newsockfd;
|
||||
|
||||
Reference in New Issue
Block a user