pub struct UdpServer;Implementations§
Source§impl UdpServer
impl UdpServer
Sourcepub fn start_unicast(info: StreamInfo, shutdown: Arc<AtomicBool>) -> (u16, u16)
pub fn start_unicast(info: StreamInfo, shutdown: Arc<AtomicBool>) -> (u16, u16)
Start the unicast UDP service (time sync + shortinfo on a dedicated port). Binds on both IPv4 and IPv6. Returns (v4_port, v6_port).
Sourcepub fn start_multicast(info: StreamInfo, shutdown: Arc<AtomicBool>)
pub fn start_multicast(info: StreamInfo, shutdown: Arc<AtomicBool>)
Start multicast/broadcast responders on the multicast port. Creates listeners for both IPv4 and IPv6 multicast groups.
Auto Trait Implementations§
impl Freeze for UdpServer
impl RefUnwindSafe for UdpServer
impl Send for UdpServer
impl Sync for UdpServer
impl Unpin for UdpServer
impl UnsafeUnpin for UdpServer
impl UnwindSafe for UdpServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more