{"id":"runtime--NetworkUdp.Send","name":"NetworkUdp.Send","owner":"yeho","package":"runtime.NetworkUdp","kind":"builtin","signature":"NetworkUdp.Send(int socket_identity, text remote_IPv4_address, int remote_port, list of byte payload) -> int","description":"Send through the NetworkUdp runtime.","context":"Built into Yeho; no package import is needed. Native services require an admitted host and the correct resource lifecycle.","parameters":[{"name":"socket_identity","type":"int","description":"Supply socket identity as int.","rule":"Int"},{"name":"remote_IPv4_address","type":"text","description":"Supply remote ipv4 address as text.","rule":"Text"},{"name":"remote_port","type":"int","description":"Supply remote port as int.","rule":"Int"},{"name":"payload","type":"list of byte","description":"Supply payload as list of byte.","rule":"ByteList"}],"returns":"int","members":[],"tags":["builtin","cpu","networkudp","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"src/compiler/common/intrinsic_registry.cpp","line":1355,"sha256":"14d29529d2d3c0e2b587f83c7f125b99ada142ed7ae28612701ea6cb9174ac65"},"status":"registered-intrinsic","notes":["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."],"examples":[{"id":"usage","title":"Call NetworkUdp.Send","description":"A complete typed caller with illustrative arguments. Native operations need the corresponding host and resources.","code":"int socket_identity = 1\ntext remote_IPv4_address = \"remote IPv4 address\"\nint remote_port = 1\nlist of byte payload = []\nint result = NetworkUdp.Send(socket_identity, remote_IPv4_address, remote_port, payload)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.runtime__networkudp_send\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["cpu","builtin"],"run":"cpu-oracle","verification":"type checked","sha256":"17279a57adaec31f50ebe5391c2066448470bce0608983eeabe62b91cff72ed4","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=runtime--NetworkUdp.Send","json":"https://demonhunterlabs.com/reference/items/runtime--NetworkUdp.Send.json","markdown":"https://demonhunterlabs.com/reference/text/runtime--NetworkUdp.Send.md"}
