Added sendFile method

Added a method to send an entire file over tcp.
This commit is contained in:
Nathan Bowhay 2015-02-05 11:43:56 -08:00
parent a0250e6c6b
commit 5f0b3984fc
2 changed files with 39 additions and 0 deletions

View file

@ -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();