src/eric7/Cooperation/CooperationServer.py

branch
eric7
changeset 10423
299802979277
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
diff -r e28b89693f37 -r 299802979277 src/eric7/Cooperation/CooperationServer.py
--- a/src/eric7/Cooperation/CooperationServer.py	Tue Dec 19 11:04:03 2023 +0100
+++ b/src/eric7/Cooperation/CooperationServer.py	Tue Dec 19 19:57:08 2023 +0100
@@ -29,8 +29,10 @@
         """
         Constructor
 
-        @param address address the server should listen on (QHostAddress)
-        @param parent reference to the parent object (QObject)
+        @param address address the server should listen on
+        @type QHostAddress
+        @param parent reference to the parent object
+        @type QObject
         """
         super().__init__(parent)
 
@@ -40,7 +42,8 @@
         """
         Public method handling an incoming connection.
 
-        @param socketDescriptor native socket descriptor (integer)
+        @param socketDescriptor native socket descriptor
+        @type int
         """
         connection = Connection(self)
         connection.setSocketDescriptor(socketDescriptor)
@@ -50,11 +53,14 @@
         """
         Public method to start listening for new connections.
 
-        @param port port to listen on (integer)
+        @param port port to listen on
+        @type int
         @param findFreePort flag indicating to search for a free port
-            depending on the configuration (boolean)
-        @return tuple giving a flag indicating success (boolean) and
-            the port the server listens on
+            depending on the configuration
+        @type bool
+        @return tuple giving a flag indicating success and the port the
+            server listens on
+        @rtype tuple of (bool, int)
         """
         res = self.listen(self.__address, port)
         if findFreePort and Preferences.getCooperation("TryOtherPorts"):

eric ide

mercurial