poll() support (tested on Solaris and Linux)

array delete policy for SharedPtr
This commit is contained in:
Aleksandar Fabijanic
2008-12-03 20:38:53 +00:00
parent c617bbe551
commit ab0684a1cd
8 changed files with 229 additions and 10 deletions

View File

@@ -37,9 +37,14 @@
#include "Poco/Net/Net.h"
#include "Poco/Net/Socket.h"
#include "CppUnit/TestCase.h"
namespace Poco{
class Timespan;
}
class SocketTest: public CppUnit::TestCase
{
public:
@@ -67,6 +72,14 @@ public:
static CppUnit::Test* suite();
private:
typedef int (*SelectPtr)(Poco::Net::Socket::SocketList&,
Poco::Net::Socket::SocketList&,
Poco::Net::Socket::SocketList&,
const Poco::Timespan&);
void doSelectOrPoll1(SelectPtr);
void doSelectOrPoll2(SelectPtr);
void doSelectOrPoll3(SelectPtr);
};