[Libwebsockets] how to set client socket local port
Sylvain Saunier
sylvain.saunier at gmail.com
Wed Jan 12 16:28:26 CET 2022
Hi Andy,
first, i wish you an happy new year
second, sorry for my english in advance...
so, i would like to set the binding "local port" for a client connection
when i use lws_client_connect_via_info().
i know i have possibility to set the local IP with iface (in
lws_client_connect_info)
there is also information port but it is for the "remote port"
should be possible to add a new info to set the "local port" instead
default 0 set in function
lws_client_connect_3_connect when calling lws_socket_bind. ?
or may be you have another way to do that ?
thank you for your help
sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20220112/4ef469a1/attachment.htm>
More information about the Libwebsockets
mailing list