mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 18:22:59 +02:00
Add setReceiveTimeout
This commit is contained in:
@@ -52,6 +52,8 @@ public:
|
|||||||
|
|
||||||
void readLine(std::string& line);
|
void readLine(std::string& line);
|
||||||
|
|
||||||
|
void setReceiveTimeout(const Timespan& timeout);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
RedisSocket(RedisSocket& copy);
|
RedisSocket(RedisSocket& copy);
|
||||||
@@ -65,6 +67,11 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
inline void RedisSocket::setReceiveTimeout(const Timespan& timeout)
|
||||||
|
{
|
||||||
|
_socket.setReceiveTimeout(timeout);
|
||||||
|
}
|
||||||
|
|
||||||
} }
|
} }
|
||||||
|
|
||||||
#endif // Redis_RedisSocket_INCLUDED
|
#endif // Redis_RedisSocket_INCLUDED
|
||||||
|
|||||||
Reference in New Issue
Block a user