jgaa / restc-cpp

Modern C++ REST Client library
MIT License
603 stars 95 forks source link

[FR] Bind source address. #122

Closed gou4shi1 closed 2 years ago

gou4shi1 commented 2 years ago

I need to call bind() on the underlying scoket to send requests from a specific NIC.

jgaa commented 2 years ago

I guess that can be added to the client properties. I'll take a look at it.

gou4shi1 commented 2 years ago

I guess that can be added to the client properties.

I think so :)

I'll take a look at it.

Thanks!

jgaa commented 2 years ago

I have created a branch for the bind support. It seems to work, but I will test it a little more before I merge it to master.

https://github.com/jgaa/restc-cpp/tree/bind-support

gou4shi1 commented 2 years ago

Great! I will test this ASAP. Thank you very much :)