some fixes in TestSocketServer()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -785,6 +785,8 @@ static void TestSocketServer()
|
|||||||
|
|
||||||
delete socket;
|
delete socket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete server;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void TestSocketClient()
|
static void TestSocketClient()
|
||||||
@@ -2606,9 +2608,9 @@ int main(int argc, char **argv)
|
|||||||
#endif // TEST_MIME
|
#endif // TEST_MIME
|
||||||
|
|
||||||
#ifdef TEST_SOCKETS
|
#ifdef TEST_SOCKETS
|
||||||
if ( 1 )
|
|
||||||
TestSocketServer();
|
|
||||||
if ( 0 )
|
if ( 0 )
|
||||||
|
TestSocketServer();
|
||||||
|
if ( 1 )
|
||||||
{
|
{
|
||||||
TestSocketClient();
|
TestSocketClient();
|
||||||
TestProtocolFtp();
|
TestProtocolFtp();
|
||||||
|
@@ -282,7 +282,9 @@ void MyCanvas::OnDraw(wxDC& dc)
|
|||||||
dc.DrawRoundedRectangle(150, 150, 100, 50, 20);
|
dc.DrawRoundedRectangle(150, 150, 100, 50, 20);
|
||||||
|
|
||||||
dc.DrawEllipse(250, 250, 100, 50);
|
dc.DrawEllipse(250, 250, 100, 50);
|
||||||
|
#if wxUSE_SPLINES
|
||||||
dc.DrawSpline(50, 200, 50, 100, 200, 10);
|
dc.DrawSpline(50, 200, 50, 100, 200, 10);
|
||||||
|
#endif // wxUSE_SPLINES
|
||||||
dc.DrawLine(50, 230, 200, 230);
|
dc.DrawLine(50, 230, 200, 230);
|
||||||
dc.DrawText("This is a test string", 50, 230);
|
dc.DrawText("This is a test string", 50, 230);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user