eric5.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

newConnection

Methods

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

CooperationServer (Constructor)

CooperationServer(parent = None)

Constructor

parent
reference to the parent object (QObject)

CooperationServer.incomingConnection

incomingConnection(socketDescriptor)

Protected method handling an incoming connection.

socketDescriptor
native socket descriptor (integer)

CooperationServer.startListening

startListening(port = -1)

Public method to start listening for new connections.

port
port to listen on (integer)
Returns:
tuple giving a flag indicating success (boolean) and the port the server listens on
Up