pub struct Pool { }
Available on non-WASI only.
Expand descriptionA pool of network addresses.
This does not directly correspond to anything in std
, however its methods correspond to the several functions in std::net
.
Pool
implements Clone
, which creates new independent entities that carry the full authority of the originals. This means that in a borrow of a Pool
, the scope of the authority is not necessarily limited to the scope of the borrow.
Similarly, the cap_net_ext::PoolExt
class allows creating “binder” and “connecter” objects which represent capabilities to bind and connect to addresses.
Construct a new empty pool.
SourceAdd addresses to the pool.
This function allows ambient access to any IP address.
SourceAdd a specific net::SocketAddr
to the pool.
This function allows ambient access to any IP address.
SourceAdd a range of network addresses, accepting any port, to the pool.
Unlike insert_ip_net
, this function grants access to any requested port.
This function allows ambient access to any IP address.
SourceAdd a range of network addresses, accepting a range of ports, to the pool.
This grants access to the port range starting at ports_start
and, if ports_end
is provided, ending before ports_end
.
This function allows ambient access to any IP address.
SourceAdd a range of network addresses with a specific port to the pool.
§Ambient AuthorityThis function allows ambient access to any IP address.
Source Source Source Source SourceSends data on the socket to the given address. On success, returns the number of bytes written.
This corresponds to std::net::UdpSocket::send_to
.
Connects this UDP socket to a remote address, allowing the send
and recv
syscalls to be used to send data and also applies filters to only receive data from the specified address.
This corresponds to std::net::UdpSocket::connect
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4