mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
add timeout to testMulticast
This commit is contained in:
parent
4092984256
commit
c890576b9a
@ -51,6 +51,7 @@ void MulticastSocketTest::testMulticast()
|
||||
{
|
||||
MulticastEchoServer echoServer;
|
||||
MulticastSocket ms(SocketAddress::IPv4);
|
||||
ms.setReceiveTimeout(Poco::Timespan(5, 0));
|
||||
int n = ms.sendTo("hello", 5, echoServer.group());
|
||||
assertTrue (n == 5);
|
||||
char buffer[256];
|
||||
|
Loading…
Reference in New Issue
Block a user