Closed psteckler closed 4 years ago
@psteckler It appears that after this issue was created, the library was refactored and Tcp.connect
moved to async_unix.
Tcp.connect
accepts the argument where_to_connect
, which can be created using of_host_and_port
where I suppose you can specify 127.0.0.8
as the desired IP address.
I'm closing this issue but feel free to reopen it if needed, ideally, in the async_unix
repository to make it more visible.
I want to have a client connect with a socket bound to a particular IP address. For example, I might want to have the IP address be
127.0.0.8
instead of the default localhost IP.Tcp.connect
expects the socket to beUnconnected
, rather thanBound
, though. I can useAsync.Socket.connect
instead, but then I lose things like the timeout feature ofTcp.connect
.Any chance of removing this restriction?