mail[Wesnoth-commits] r44830 - in /trunk/src: network_async.cpp network_async.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by billybiset on July 28, 2010 - 23:29:
Author: billynux
Date: Wed Jul 28 23:29:17 2010
New Revision: 44830

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44830&view=rev
Log:
Added destructors to the new network API.

Modified:
    trunk/src/network_async.cpp
    trunk/src/network_async.hpp

Modified: trunk/src/network_async.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/network_async.cpp?rev=44830&r1=44829&r2=44830&view=diff
==============================================================================
--- trunk/src/network_async.cpp (original)
+++ trunk/src/network_async.cpp Wed Jul 28 23:29:17 2010
@@ -26,6 +26,11 @@
 client::client( handler& handler ) :
     client_( ... )
 {
+}
+
+client::~client()
+{
+    delete client_;
 }
 
 void client::set_send_timeout( ana::timeout_policy type, size_t ms )
@@ -96,6 +101,12 @@
     server_( )
 {
 }
+
+server::~server()
+{
+    delete server_;
+}
+
 
 void server::set_timeout( ana::net_id, ana::timeout_policy type, size_t ms )
 {

Modified: trunk/src/network_async.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/network_async.hpp?rev=44830&r1=44829&r2=44830&view=diff
==============================================================================
--- trunk/src/network_async.hpp (original)
+++ trunk/src/network_async.hpp Wed Jul 28 23:29:17 2010
@@ -156,6 +156,8 @@
             client( handler& handler );
             // Idea: Add a set_handler method to change handlers during 
execution.
 
+            ~client();
+
             /**
              * Set timeouts for send operations for a given client.
              *
@@ -286,6 +288,8 @@
              */
             server( port, handler& );
 
+            ~server();
+
             /**
              * Set timeouts for send operations for a given client.
              *




Related Messages


Powered by MHonArc, Updated Thu Jul 29 00:20:15 2010