1 | // |
---|---|
2 | // DatagramSocketTest.h |
3 | // |
4 | // Definition of the DatagramSocketTest class. |
5 | // |
6 | // Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH. |
7 | // and Contributors. |
8 | // |
9 | // SPDX-License-Identifier: BSL-1.0 |
10 | // |
11 | |
12 | |
13 | #ifndef DatagramSocketTest_INCLUDED |
14 | #define DatagramSocketTest_INCLUDED |
15 | |
16 | |
17 | #include "Poco/Net/Net.h" |
18 | #include "Poco/CppUnit/TestCase.h" |
19 | |
20 | |
21 | class DatagramSocketTest: public CppUnit::TestCase |
22 | { |
23 | public: |
24 | DatagramSocketTest(const std::string& name); |
25 | ~DatagramSocketTest(); |
26 | |
27 | void testEcho(); |
28 | void testEchoBuffer(); |
29 | void testSendToReceiveFrom(); |
30 | void testUnbound(); |
31 | void testBroadcast(); |
32 | void testGatherScatterFixed(); |
33 | void testGatherScatterVariable(); |
34 | |
35 | void setUp(); |
36 | void tearDown(); |
37 | |
38 | static CppUnit::Test* suite(); |
39 | |
40 | private: |
41 | // "STRF" are sendto/recvfrom versions of the same functionality |
42 | void testGatherScatterFixedWin(); |
43 | void testGatherScatterSTRFFixedWin(); |
44 | void testGatherScatterVariableWin(); |
45 | void testGatherScatterSTRFVariableWin(); |
46 | |
47 | void testGatherScatterFixedUNIX(); |
48 | void testGatherScatterSTRFFixedUNIX(); |
49 | void testGatherScatterVariableUNIX(); |
50 | void testGatherScatterSTRFVariableUNIX(); |
51 | }; |
52 | |
53 | |
54 | #endif // DatagramSocketTest_INCLUDED |
55 |