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