mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 23:24:41 +00:00
Allowed for WebSocket reading
Allowed for WebSocket reading in script.
This commit is contained in:
parent
1d20f6d26a
commit
69b1c0072c
2 changed files with 50 additions and 2 deletions
|
|
@ -36,6 +36,7 @@ public:
|
|||
|
||||
DECLARE_CALLBACK(void, onConnectionRequest, (const char* address, const char* ID));
|
||||
DECLARE_CALLBACK(void, onLine, (const char* line));
|
||||
DECLARE_CALLBACK(bool, onPacket, (const char* data));
|
||||
DECLARE_CALLBACK(void, onEndReceive, ());
|
||||
DECLARE_CALLBACK(void, onDNSResolved,());
|
||||
DECLARE_CALLBACK(void, onDNSFailed, ());
|
||||
|
|
@ -61,7 +62,9 @@ public:
|
|||
virtual ~TCPObject();
|
||||
|
||||
void parseLine(U8 *buffer, U32 *start, U32 bufferLen);
|
||||
void finishLastLine();
|
||||
bool finishLastLine();
|
||||
bool isBufferEmpty();
|
||||
void emptyBuffer();
|
||||
|
||||
static TCPObject *find(NetSocket tag);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue