Author: remi
Date: 2009-03-12 20:34:53 +0100 (Thu, 12 Mar 2009)
New Revision: 4027
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/TDSClientsManager.py
Log:
* fixed a problem with the tcp/ip server socket
Modified: software_suite_v2/tuxware/tuxdroidserver/trunk/TDSClientsManager.py
===================================================================
--- software_suite_v2/tuxware/tuxdroidserver/trunk/TDSClientsManager.py
2009-03-12 18:33:36 UTC (rev 4026)
+++ software_suite_v2/tuxware/tuxdroidserver/trunk/TDSClientsManager.py
2009-03-12 19:34:53 UTC (rev 4027)
@@ -235,6 +235,7 @@
return True
# Create the server socket
self.__socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ self.__socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
try:
# Bind the socket
self.__socket.bind((self.__host, self.__port))
@@ -285,6 +286,7 @@
# Close all clients
self.__clearClients()
# Close the server socket
+ self.__socket.shutdown(1)
self.__socket.close()
time.sleep(0.1)
# Ensure that the threads have been stopped
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn