Close the connection
(self)
| 71 | return self.remote_addr |
| 72 | |
| 73 | def close(self): |
| 74 | """Close the connection <require elevated process>""" |
| 75 | closing = MIB_TCPROW() |
| 76 | closing.dwState = MIB_TCP_STATE_DELETE_TCB |
| 77 | closing.dwLocalAddr = self.dwLocalAddr |
| 78 | closing.dwLocalPort = self.dwLocalPort |
| 79 | closing.dwRemoteAddr = self.dwRemoteAddr |
| 80 | closing.dwRemotePort = self.dwRemotePort |
| 81 | return winproxy.SetTcpEntry(ctypes.byref(closing)) |
| 82 | |
| 83 | def __repr__(self): |
| 84 | if not self.established: |
nothing calls this directly
no outgoing calls
no test coverage detected