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

Method close

pager_lib/smb/SMBConnection.py:135–141  ·  view source on GitHub ↗

Terminate the SMB connection (if it has been started) and release any sources held by the underlying socket.

(self)

Source from the content-addressed store, hash-verified

133 return self.auth_result
134
135 def close(self):
136 """
137 Terminate the SMB connection (if it has been started) and release any sources held by the underlying socket.
138 """
139 if self.sock:
140 self.sock.close()
141 self.sock = None
142
143 def listShares(self, timeout = 30):
144 """

Callers 7

smb_connectMethod · 0.95
__exit__Method · 0.95
connectMethod · 0.45
infoCBMethod · 0.45
readCBMethod · 0.45
sendWriteMethod · 0.45
writeCBMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected