343 |
343 |
344 def newConnection(self, sock): |
344 def newConnection(self, sock): |
345 """ |
345 """ |
346 Public slot to handle a new connection. |
346 Public slot to handle a new connection. |
347 |
347 |
348 @param sockreference to the socket object (QTcpSocket) |
348 @param sock reference to the socket object (QTcpSocket) |
349 @return flag indicating success (boolean) |
349 @return flag indicating success (boolean) |
350 """ |
350 """ |
351 # If we already have a connection, refuse this one. It will be closed |
351 # If we already have a connection, refuse this one. It will be closed |
352 # automatically. |
352 # automatically. |
353 if self.qsock is not None: |
353 if self.qsock is not None: |