MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / closeConnection

Method closeConnection

pager_lib/smb/SMBProtocol.py:393–402  ·  view source on GitHub ↗

Disconnect from the remote SMB/CIFS server. The TCP connection will be closed at the earliest opportunity after this method returns. :return: None

(self)

Source from the content-addressed store, hash-verified

391 return d
392
393 def closeConnection(self):
394 """
395 Disconnect from the remote SMB/CIFS server. The TCP connection will be closed at the earliest opportunity after this method returns.
396
397 :return: None
398 """
399 if not self.instance:
400 raise NotConnectedError('Not connected to server')
401
402 self.instance.transport.loseConnection()
403
404 #
405 # ClientFactory methods

Callers

nothing calls this directly

Calls 1

NotConnectedErrorClass · 0.70

Tested by

no test coverage detected