eric7.Cooperation.CooperationServer

Module implementing the cooperation server.

Global Attributes

None

Classes

CooperationServer Class implementing the cooperation server.

Functions

None


CooperationServer

Class implementing the cooperation server.

Signals

newConnection(connection)
emitted after a new connection was received (Connection)

Derived from

QTcpServer

Class Attributes

None

Class Methods

None

Methods

CooperationServer Constructor
incomingConnection Public method handling an incoming connection.
startListening Public method to start listening for new connections.

Static Methods

None

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)
Up