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

Method connect_ex

crates/stdlib/src/socket.rs:1614–1619  ·  view source on GitHub ↗
(&self, address: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1612
1613 #[pymethod]
1614 fn connect_ex(&self, address: PyObjectRef, vm: &VirtualMachine) -> PyResult<i32> {
1615 match self.connect_inner(address, "connect_ex", vm) {
1616 Ok(()) => Ok(0),
1617 Err(err) => err.errno(),
1618 }
1619 }
1620
1621 #[pymethod]
1622 fn bind(&self, address: PyObjectRef, vm: &VirtualMachine) -> Result<(), IoOrPyException> {

Callers

nothing calls this directly

Calls 2

connect_innerMethod · 0.80
errnoMethod · 0.45

Tested by

no test coverage detected