MCPcopy Index your code
hub / github.com/RustPython/RustPython / getpeername

Method getpeername

crates/stdlib/src/socket.rs:2202–2206  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2200
2201 #[pymethod]
2202 fn getpeername(&self, vm: &VirtualMachine) -> std::io::Result<PyObjectRef> {
2203 let addr = self.sock()?.peer_addr()?;
2204
2205 Ok(get_addr_tuple(&addr, vm))
2206 }
2207
2208 #[pymethod]
2209 fn gettimeout(&self) -> Option<f64> {

Callers

nothing calls this directly

Calls 2

get_addr_tupleFunction · 0.85
sockMethod · 0.80

Tested by

no test coverage detected