std :: async::net
Struct std::AsyncTcpListener
struct AsyncTcpListener {
int fd;
}Fields
< 0: bind/listen failed
Methods
Listen on 'port' (0: any free port; see local_port) on every interface.
Ready with the next connection (its .fd < 0 on an error).
The port it listens on.
close(), ignoring the result