smoltcp-rs / smoltcp

a smol tcp/ip stack
BSD Zero Clause License
3.82k stars 433 forks source link

add a getter method for TCP listen_endpoint #1005

Closed tomDev5 closed 1 month ago

tomDev5 commented 1 month ago

Currently there is no way to query a TCP socket about which address it listens on. This seems in-line (pun intended) with the remote_endpoint() and local_endpoint() getters.