mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
Added sendFile method
Added a method to send an entire file over tcp.
This commit is contained in:
parent
a0250e6c6b
commit
5f0b3984fc
2 changed files with 39 additions and 0 deletions
|
|
@ -82,6 +82,12 @@ public:
|
|||
|
||||
bool processArguments(S32 argc, ConsoleValueRef *argv);
|
||||
void send(const U8 *buffer, U32 bufferLen);
|
||||
|
||||
///Send an entire file over tcp
|
||||
///@arg fileName Full path to file you want to send
|
||||
///@return true if file was sent, false if not (file doesn't exist)
|
||||
bool sendFile(const char* fileName);
|
||||
|
||||
void addToTable(NetSocket newTag);
|
||||
void removeFromTable();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue