diff options
Diffstat (limited to 'tests/testUtils.hpp')
-rw-r--r-- | tests/testUtils.hpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp index 1e138301..7ff3b40f 100644 --- a/tests/testUtils.hpp +++ b/tests/testUtils.hpp @@ -256,16 +256,31 @@ public: /** Send data to client. * - * @buffer data to send + * @param buffer data to send */ void localSend(const vmime::string& buffer); /** Receive data from client. * - * @buffer buffer in which to store received data + * @param buffer buffer in which to store received data */ void localReceive(vmime::string& buffer); + /** Receive a line from client. + * + * @param buffer buffer in which to store received line + * @return true if a line has been read, or false otherwise + */ + bool localReceiveLine(vmime::string& buffer); + + /** Receive data from client. + * + * @param buffer buffer in which to store received data + * @param count number of bytes to receive + * @return number of bytes received + */ + testSocket::size_type localReceiveRaw(char* buffer, const size_type count); + protected: /** Called when the client has sent some data. |