Performance improvements and fixes as well as new high-performance sending functions in the socket library.

This commit is contained in:
Thulinma 2012-09-17 16:47:58 +02:00
parent 4140b04608
commit c95bf32fae
4 changed files with 68 additions and 36 deletions

View file

@ -75,6 +75,9 @@ namespace Socket{
void Send(std::string & data); ///< Appends data to the upbuffer.
void Send(const char * data); ///< Appends data to the upbuffer.
void Send(const char * data, size_t len); ///< Appends data to the upbuffer.
void SendNow(std::string & data); ///< Will not buffer anything but always send right away. Blocks.
void SendNow(const char * data); ///< Will not buffer anything but always send right away. Blocks.
void SendNow(const char * data, size_t len); ///< Will not buffer anything but always send right away. Blocks.
//stats related methods
unsigned int dataUp(); ///< Returns total amount of bytes sent.
unsigned int dataDown(); ///< Returns total amount of bytes received.