-
Notifications
You must be signed in to change notification settings - Fork 1
Specifying the source address of an outgoing connection using IO::Socket::* #6399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From @AlexDanielIt should be possible to specify the source address of outgoing (client) connections. This is especially useful if the machine has more than one IP address. Examples in other software: It is possible to find more examples of languages that support it, but I'm sold already. My best guess is that it is doable by simply calling uv_tcp_bind for outgoing connections. Relevant links: |
There were a series of pull requests to resolve this, but unfortunately it's a little bit stuck.
@Kaiepi, any thoughts? |
Bind before connect is something I'm working towards making possible with MoarVM/MoarVM#1231 / Raku/nqp#597 / rakudo/rakudo#3451. With those it'd be possible to call a I'm OK with adding source host and port parameters to |
OK, I see. Mind if I assign you here? |
This adds localhost and localport named parameters to IO::Socket::INET.connect, which allows you to specify an address to bind to before connecting. Fixes Raku/old-issue-tracker#6399
This adds localhost and localport named parameters to IO::Socket::INET.connect, which allows you to specify an address to bind to before connecting. Fixes Raku/old-issue-tracker#6399
This adds localhost and localport named parameters to IO::Socket::INET.connect, which allows you to specify an address to bind to before connecting. Fixes Raku/old-issue-tracker#6399
Migrated from rt.perl.org#131766 (status was 'new')
Searchable as RT131766$
The text was updated successfully, but these errors were encountered: