mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 13:47:10 +01:00
GH #127: Eliminate -Wshadow warnings
- fixed GH #127: Eliminate -Wshadow warnings - SocketAddress small object optimization
This commit is contained in:
@@ -66,10 +66,10 @@ void DatagramSocketTest::testEcho()
|
||||
{
|
||||
UDPEchoServer echoServer;
|
||||
DatagramSocket ss;
|
||||
char buffer[256];
|
||||
ss.connect(SocketAddress("localhost", echoServer.port()));
|
||||
int n = ss.sendBytes("hello", 5);
|
||||
assert (n == 5);
|
||||
char buffer[256];
|
||||
n = ss.receiveBytes(buffer, sizeof(buffer));
|
||||
assert (n == 5);
|
||||
assert (std::string(buffer, n) == "hello");
|
||||
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
|
||||
void run();
|
||||
/// Does the work.
|
||||
|
||||
|
||||
private:
|
||||
Poco::Net::DatagramSocket _socket;
|
||||
Poco::Thread _thread;
|
||||
|
||||
Reference in New Issue
Block a user