diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-31 01:38:18 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-31 01:38:18 +0100 |
commit | c142424571a3744e8b68ec9746eaa05505c03af5 (patch) | |
tree | 9a8950e671cafbe4eddc096cdc648d7876c1b1de /WebServer/Socket.h | |
parent | Replaced most FILE operations with a cFile object (diff) | |
download | cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.tar cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.tar.gz cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.tar.bz2 cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.tar.lz cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.tar.xz cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.tar.zst cuberite-c142424571a3744e8b68ec9746eaa05505c03af5.zip |
Diffstat (limited to '')
-rw-r--r-- | WebServer/Socket.h | 12 |
1 files changed, 7 insertions, 5 deletions
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 <winsock2.h>
-// #endif
+// #include <winsock2.h>
+
+// #endif
+
#include <string>
@@ -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.
|