IO::Socket
Native Rust implementation built into the interpreter. Runtime: P5. See original documentation for the full Perl reference.
Functions
import
noop, returns 1.
new
creates a blessed hashref with constructor args.
Mirrors pp.rs dispatch “new”: creates HV, stores key/value pairs from args (skipping invocant), blesses into IO::Socket, returns RV.
send
returns length of $data.
sockdomain
returns AF_INET (2).
socktype
returns SOCK_STREAM (1).
stub_one
for bind, listen, shutdown, setsockopt,
socket, socketpair.
stub_undef
for accept, peername, sockname, sockopt,
getsockopt, connected, recv.
stub_zero
for connect, protocol, atmark.
timeout
get/set timeout.
With arg: returns the new value. Without: returns undef.