mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
Added callback when we read all lines
Added a script callback when all lines have been read.
This commit is contained in:
parent
014b566014
commit
a0250e6c6b
2 changed files with 7 additions and 0 deletions
|
|
@ -138,6 +138,10 @@ IMPLEMENT_CALLBACK(TCPObject, onLine, void, (const char* line), (line),
|
|||
"@param line Data sent from the server.\n"
|
||||
);
|
||||
|
||||
IMPLEMENT_CALLBACK(TCPObject, onEndReceive, void, (), (),
|
||||
"@brief Called when we are done reading all lines.\n\n"
|
||||
);
|
||||
|
||||
IMPLEMENT_CALLBACK(TCPObject, onDNSResolved, void, (),(),
|
||||
"Called whenever the DNS has been resolved.\n"
|
||||
);
|
||||
|
|
@ -499,6 +503,8 @@ void processConnectedReceiveEvent(NetSocket sock, RawData incomingData)
|
|||
size -= ret;
|
||||
buffer += ret;
|
||||
}
|
||||
|
||||
tcpo->onEndReceive_callback();
|
||||
}
|
||||
|
||||
void processConnectedAcceptEvent(NetSocket listeningPort, NetSocket newConnection, NetAddress originatingAddress)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue