Changeset View
Changeset View
Standalone View
Standalone View
src/util/sock.h
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | public: | ||||
*/ | */ | ||||
virtual std::string RecvUntilTerminator(uint8_t terminator, | virtual std::string RecvUntilTerminator(uint8_t terminator, | ||||
std::chrono::milliseconds timeout, | std::chrono::milliseconds timeout, | ||||
CThreadInterrupt &interrupt, | CThreadInterrupt &interrupt, | ||||
size_t max_data) const; | size_t max_data) const; | ||||
/** | /** | ||||
* Check if still connected. | * Check if still connected. | ||||
* @param[out] err The error string, if the socket has been disconnected. | * @param[out] errmsg The error string, if the socket has been disconnected. | ||||
* @return true if connected | * @return true if connected | ||||
*/ | */ | ||||
virtual bool IsConnected(std::string &errmsg) const; | virtual bool IsConnected(std::string &errmsg) const; | ||||
protected: | protected: | ||||
/** | /** | ||||
* Contained socket. `INVALID_SOCKET` designates the object is empty. | * Contained socket. `INVALID_SOCKET` designates the object is empty. | ||||
*/ | */ | ||||
Show All 10 Lines |