GH #127: Eliminate -Wshadow warnings

- fixed GH #127: Eliminate -Wshadow warnings
- SocketAddress small object optimization
This commit is contained in:
aleks-f
2013-03-17 01:28:01 -05:00
parent 42ff341cb9
commit 2392f34974
27 changed files with 538 additions and 277 deletions

View File

@@ -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");

View File

@@ -66,7 +66,7 @@ public:
void run();
/// Does the work.
private:
Poco::Net::DatagramSocket _socket;
Poco::Thread _thread;