mirror of
https://github.com/smoltcp-rs/smoltcp.git
synced 2025-09-28 05:10:30 +00:00
listen endpoint getter
This commit is contained in:
parent
fe0b4d1022
commit
632e164d49
@ -793,6 +793,12 @@ impl<'a> Socket<'a> {
|
||||
self.hop_limit = hop_limit
|
||||
}
|
||||
|
||||
/// Return the listen endpoint
|
||||
#[inline]
|
||||
pub fn listen_endpoint(&self) -> IpListenEndpoint {
|
||||
self.listen_endpoint
|
||||
}
|
||||
|
||||
/// Return the local endpoint, or None if not connected.
|
||||
#[inline]
|
||||
pub fn local_endpoint(&self) -> Option<IpEndpoint> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user