Skip to content
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

how to bind aws_socket to network interface #552

Open
mllw opened this issue Mar 3, 2023 · 4 comments
Open

how to bind aws_socket to network interface #552

mllw opened this issue Mar 3, 2023 · 4 comments
Labels
feature-request A feature should be added or improved. p3 This is a minor priority issue

Comments

@mllw
Copy link

mllw commented Mar 3, 2023

Are there any plans to add a function that bind sockets to specify network interface?

@graebm
Copy link
Contributor

graebm commented Mar 3, 2023

not sure exactly what you're asking?

We have an aws_socket_bind() function.

@bretambrose
Copy link
Contributor

I think the intent is for socket options to be able to specify a particular network interface that must be used. Which is problematic because socket options is a by-value structure we blindly copy everywhere and I don't think we want C-strings or byte cursor/bufs in it. Maybe there's a reasonable upperbound and it could just be a fixed size array.

@mllw
Copy link
Author

mllw commented Mar 9, 2023

not sure exactly what you're asking?

We have an aws_socket_bind() function.

I use aws-c-http to send HTTP requests.
I wanted to set the socket's option by SO_BINDTODEVICE, but I didn't find a suitable function and there was no suitable callback function to complete this setup

@fishbone
Copy link

Is there any solution for this one? I also want to send the request through an ip address.

@jmklix jmklix added feature-request A feature should be added or improved. p3 This is a minor priority issue labels Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. p3 This is a minor priority issue
Projects
None yet
Development

No branches or pull requests

5 participants