From 0a768090928d07912c14af10cde2bdc86d323f51 Mon Sep 17 00:00:00 2001 From: Nathan Bowhay Date: Thu, 5 Feb 2015 11:44:32 -0800 Subject: [PATCH] Opened finishLastLine to script Opened finishLastLine to script so you can eat the rest of the lines in script. --- Engine/source/app/net/tcpObject.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Engine/source/app/net/tcpObject.cpp b/Engine/source/app/net/tcpObject.cpp index b156bfa04..28e91ba45 100644 --- a/Engine/source/app/net/tcpObject.cpp +++ b/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"