213 @param socketError reference to the error object |
213 @param socketError reference to the error object |
214 @type QAbstractSocket.SocketError |
214 @type QAbstractSocket.SocketError |
215 @param connection connection that caused the error |
215 @param connection connection that caused the error |
216 @type Connection |
216 @type Connection |
217 """ |
217 """ |
218 if socketError != QAbstractSocket.RemoteHostClosedError: |
218 if socketError != QAbstractSocket.SocketError.RemoteHostClosedError: |
219 if connection.peerPort() != 0: |
219 if connection.peerPort() != 0: |
220 msg = "* {0}:{1}\n{2}\n".format( |
220 msg = "* {0}:{1}\n{2}\n".format( |
221 connection.peerAddress().toString(), |
221 connection.peerAddress().toString(), |
222 connection.peerPort(), |
222 connection.peerPort(), |
223 connection.errorString() |
223 connection.errorString() |