std :: async::net
Struct std::AsyncTcpStream
struct AsyncTcpStream {
int fd;
}Fields
< 0: not connected (a failed connect/accept)
Methods
§
static struct ConnectFut connect(unsigned int addr_network_order, unsigned short port)source · definitionUp to buf.len bytes: the count, 0 once the peer closed, -1 on error.
Some of buf: the count written, -1 on error.
All of buf: 1 when written, 0 on error.
close(), ignoring the result