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