MCPcopy Create free account
hub / github.com/PerroEngine/Perro / udp_send_to

Method udp_send_to

perro_source/api_modules/perro_networking/src/world.rs:140–147  ·  view source on GitHub ↗
(
        &self,
        id: UdpEndpointId,
        bytes: &[u8],
        addr: A,
    )

Source from the content-addressed store, hash-verified

138 }
139
140 pub fn udp_send_to<A: ToSocketAddrs>(
141 &self,
142 id: UdpEndpointId,
143 bytes: &[u8],
144 addr: A,
145 ) -> NetResult<usize> {
146 self.udp_endpoint(id)?.send_to(bytes, addr)
147 }
148
149 pub fn websocket_send_text(
150 &mut self,

Calls 2

send_toMethod · 0.80
udp_endpointMethod · 0.80

Tested by 1