Ver Fonte

Opened finishLastLine to script

Opened finishLastLine to script so you can eat the rest of the lines in
script.
Nathan Bowhay há 10 anos atrás
pai
commit
0a76809092
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      Engine/source/app/net/tcpObject.cpp

+ 5 - 0
Engine/source/app/net/tcpObject.cpp

@@ -457,6 +457,11 @@ DefineEngineMethod(TCPObject, sendFile, bool, (const char *fileName),,
 	return object->sendFile(fileName);
 }
 
+DefineEngineMethod(TCPObject, finishLastLine, void, (),, 
+   "@brief Eat the rest of the lines.\n")
+{
+	object->finishLastLine();
+}
 
 DefineEngineMethod(TCPObject, listen, void, (U32 port),, 
    "@brief Start listening on the specified port for connections.\n\n"