321 |
321 |
322 def newConnection(self, sock): |
322 def newConnection(self, sock): |
323 """ |
323 """ |
324 Public slot to handle a new connection. |
324 Public slot to handle a new connection. |
325 |
325 |
326 @param sockreference to the socket object (QTcpSocket) |
326 @param sock reference to the socket object (QTcpSocket) |
327 @return flag indicating success (boolean) |
327 @return flag indicating success (boolean) |
328 """ |
328 """ |
329 # If we already have a connection, refuse this one. It will be closed |
329 # If we already have a connection, refuse this one. It will be closed |
330 # automatically. |
330 # automatically. |
331 if self.qsock is not None: |
331 if self.qsock is not None: |