Browse Source

Opened finishLastLine to script

Opened finishLastLine to script so you can eat the rest of the lines in
script.
Nathan Bowhay 10 years ago
parent
commit
0a76809092
1 changed files with 5 additions and 0 deletions
  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);
 	return object->sendFile(fileName);
 }
 }
 
 
+DefineEngineMethod(TCPObject, finishLastLine, void, (),, 
+   "@brief Eat the rest of the lines.\n")
+{
+	object->finishLastLine();
+}
 
 
 DefineEngineMethod(TCPObject, listen, void, (U32 port),, 
 DefineEngineMethod(TCPObject, listen, void, (U32 port),, 
    "@brief Start listening on the specified port for connections.\n\n"
    "@brief Start listening on the specified port for connections.\n\n"