src/eric7/Cooperation/CooperationServer.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/Cooperation/CooperationServer.py
--- a/src/eric7/Cooperation/CooperationServer.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/Cooperation/CooperationServer.py	Wed Jul 13 14:55:47 2022 +0200
@@ -18,37 +18,38 @@
 class CooperationServer(QTcpServer):
     """
     Class implementing the cooperation server.
-    
+
     @signal newConnection(connection) emitted after a new connection was
         received (Connection)
     """
+
     newConnection = pyqtSignal(Connection)
-    
+
     def __init__(self, address, parent=None):
         """
         Constructor
-        
+
         @param address address the server should listen on (QHostAddress)
         @param parent reference to the parent object (QObject)
         """
         super().__init__(parent)
-        
+
         self.__address = address
-    
+
     def incomingConnection(self, socketDescriptor):
         """
         Public method handling an incoming connection.
-        
+
         @param socketDescriptor native socket descriptor (integer)
         """
         connection = Connection(self)
         connection.setSocketDescriptor(socketDescriptor)
         self.newConnection.emit(connection)
-    
+
     def startListening(self, port=-1, findFreePort=False):
         """
         Public method to start listening for new connections.
-        
+
         @param port port to listen on (integer)
         @param findFreePort flag indicating to search for a free port
             depending on the configuration (boolean)

eric ide

mercurial