From c142424571a3744e8b68ec9746eaa05505c03af5 Mon Sep 17 00:00:00 2001 From: faketruth Date: Tue, 31 Jan 2012 00:38:18 +0000 Subject: Can now receive POST data in WebPlugins! Fixed Debug With optimized Noise in VS2010 by having it run the correct MCServer_debug.exe instead of MCServer.exe Changed winsock.h to Winsock2.h in Globals.h so sockets can be graciously closed (See webserver Socket::Close() ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@197 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- WebServer/Socket.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'WebServer/Socket.h') diff --git a/WebServer/Socket.h b/WebServer/Socket.h index c26822e34..339dae188 100644 --- a/WebServer/Socket.h +++ b/WebServer/Socket.h @@ -31,11 +31,13 @@ #ifndef SOCKET_H #define SOCKET_H - + #include "../source/MCSocket.h" // #ifdef _WIN32 -// #include -// #endif +// #include + +// #endif + #include @@ -49,9 +51,9 @@ public: Socket& operator=(Socket&); std::string ReceiveLine(); - std::string ReceiveBytes(); + std::string ReceiveBytes( unsigned int a_Length ); - void Close(); + void Close( bool a_WaitSend = false ); // The parameter of SendLine is not a const reference // because SendLine modifes the std::string passed. -- cgit v1.2.3