Mercurial > crates > systemd-socket
comparison tests/comm.rs @ 4:66c0e10c89fc
Support resolving hostnames
Until now the crate supported only IP addresses and systemd sockets.
This was troublesome because it prevented the popular `localhost:1234`
format. This commit changes the behavior so that if parsing of
`std::net::SocketAddr` fails it attempts to parse it as `hostname:port`.
`bind_*()` methods were also modified to be async because of this.
author | Martin Habovstiak <martin.habovstiak@gmail.com> |
---|---|
date | Fri, 27 Nov 2020 15:05:19 +0100 |
parents | ef8bf41097ac |
children | 372afb9a700f |
comparison
equal
deleted
inserted
replaced
3:0edcde404b02 | 4:66c0e10c89fc |
---|