@ -135,13 +135,16 @@ public:
* @ param [ in ] terminator Character up to which to read from the socket .
* @ param [ in ] terminator Character up to which to read from the socket .
* @ param [ in ] timeout Timeout for the entire operation .
* @ param [ in ] timeout Timeout for the entire operation .
* @ param [ in ] interrupt If this is signaled then the operation is canceled .
* @ param [ in ] interrupt If this is signaled then the operation is canceled .
* @ param [ in ] max_data The maximum amount of data ( in bytes ) to receive . If this many bytes
* are received and there is still no terminator , then this method will throw an exception .
* @ return The data that has been read , without the terminating character .
* @ return The data that has been read , without the terminating character .
* @ throws std : : runtime_error if the operation cannot be completed . In this case some bytes may
* @ throws std : : runtime_error if the operation cannot be completed . In this case some bytes may
* have been consumed from the socket .
* have been consumed from the socket .
*/
*/
virtual std : : string RecvUntilTerminator ( uint8_t terminator ,
virtual std : : string RecvUntilTerminator ( uint8_t terminator ,
std : : chrono : : milliseconds timeout ,
std : : chrono : : milliseconds timeout ,
CThreadInterrupt & interrupt ) const ;
CThreadInterrupt & interrupt ,
size_t max_data ) const ;
/**
/**
* Check if still connected .
* Check if still connected .