Expand description
ArceOS network module.
It provides unified networking primitives for TCP/UDP communication using various underlying network stacks. Currently, only smoltcp is supported.
§Organization
TcpSocket
: A TCP socket that provides POSIX-like APIs.UdpSocket
: A UDP socket that provides POSIX-like APIs.dns_query
: Function for DNS query.
§Cargo Features
smoltcp
: Use smoltcp as the underlying network stack. This is enabled by default.
Structs§
- TcpSocket
- A TCP socket that provides POSIX-like APIs.
- UdpSocket
- A UDP socket that provides POSIX-like APIs.
Functions§
- bench_
receive - Benchmark raw socket receive bandwidth.
- bench_
transmit - Benchmark raw socket transmit bandwidth.
- dns_
query - Public function for DNS query.
- init_
network - Initializes the network subsystem by NIC devices.
- poll_
interfaces - Poll the network stack.