4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing the cooperation server. |
7 Module implementing the cooperation server. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
9 |
11 |
10 from PyQt4.QtCore import pyqtSignal |
12 from PyQt4.QtCore import pyqtSignal |
11 from PyQt4.QtNetwork import QTcpServer |
13 from PyQt4.QtNetwork import QTcpServer |
12 |
14 |
13 from .Connection import Connection |
15 from .Connection import Connection |
29 Constructor |
31 Constructor |
30 |
32 |
31 @param address address the server should listen on (QHostAddress) |
33 @param address address the server should listen on (QHostAddress) |
32 @param parent reference to the parent object (QObject) |
34 @param parent reference to the parent object (QObject) |
33 """ |
35 """ |
34 super().__init__(parent) |
36 super(CooperationServer, self).__init__(parent) |
35 |
37 |
36 self.__address = address |
38 self.__address = address |
37 |
39 |
38 def incomingConnection(self, socketDescriptor): |
40 def incomingConnection(self, socketDescriptor): |
39 """ |
41 """ |