runtime.NetworkUdp · builtin ·
NetworkUdp.Send
Send through the NetworkUdp runtime.
Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.
NetworkUdp.Send(int socket_identity, text remote_IPv4_address, int remote_port, list of byte payload) -> intStatus: registered-intrinsic
Parameters
int socket_identity- Supply socket identity as int.
text remote_IPv4_address- Supply remote ipv4 address as text.
int remote_port- Supply remote port as int.
list of byte payload- Supply payload as list of byte.
Call NetworkUdp.Send
A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.
cpu · builtin · type checked
int socket_identity = 1
text remote_IPv4_address = "remote IPv4 address"
int remote_port = 1
list of byte payload = []
int result = NetworkUdp.Send(socket_identity, remote_IPv4_address, remote_port, payload)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.runtime__networkudp_send"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
Notes and source
The example checks the call shape. Opening windows, recording audio, changing files, network operations, and process operations have real effects when run. Follow the corresponding package lifecycle before using live resources.
yeho/src/compiler/common/intrinsic_registry.cpp:1355