eric7.Cooperation.CooperationServer
Module implementing the cooperation server.
Global Attributes
Classes
Functions
CooperationServer
    Class implementing the cooperation server.
Signals
- newConnection(connection)
- 
emitted after a new connection was
        received (Connection)
Derived from
QTcpServer
Class Attributes
Class Methods
Methods
Static Methods
CooperationServer (Constructor)
CooperationServer(address, parent=None)
        Constructor
- address (QHostAddress)
- 
address the server should listen on
- parent (QObject)
- 
reference to the parent object
CooperationServer.incomingConnection
incomingConnection(socketDescriptor)
        Public method handling an incoming connection.
- socketDescriptor (int)
- 
native socket descriptor
CooperationServer.startListening
startListening(port=-1, findFreePort=False)
        Public method to start listening for new connections.
- port (int)
- 
port to listen on
- findFreePort (bool)
- 
flag indicating to search for a free port
            depending on the configuration
- Return:
- 
tuple giving a flag indicating success and the port the
            server listens on
- Return Type:
- 
tuple of (bool, int)