352 |
352 |
353 def newConnection(self, sock): |
353 def newConnection(self, sock): |
354 """ |
354 """ |
355 Public slot to handle a new connection. |
355 Public slot to handle a new connection. |
356 |
356 |
357 @param sockreference to the socket object (QTcpSocket) |
357 @param sock reference to the socket object (QTcpSocket) |
358 @return flag indicating success (boolean) |
358 @return flag indicating success (boolean) |
359 """ |
359 """ |
360 # If we already have a connection, refuse this one. It will be closed |
360 # If we already have a connection, refuse this one. It will be closed |
361 # automatically. |
361 # automatically. |
362 if self.qsock is not None: |
362 if self.qsock is not None: |