{"id":"network.udp--udpSendResult","name":"udpSendResult","owner":"yeho","package":"network.udp","kind":"thing","signature":"external thing udpSendResult","description":"A udp send result record carrying status, bytes.","context":"Exchange bounded UDP datagrams; your application owns its protocol and session rules.","parameters":[],"returns":"void","members":[{"name":"status","kind":"field","type":"int","description":"Stores status as int.","signature":"int status","tags":["thing","field","network.udp"],"updated":"2026-09-09"},{"name":"bytes","kind":"field","type":"int","description":"Stores bytes as int.","signature":"int bytes","tags":["thing","field","network.udp"],"updated":"2026-09-09"},{"name":"udpSendResult","kind":"constructor","parameters":[{"name":"status","type":"int","description":"Status."},{"name":"bytes","type":"int","description":"Bytes."}],"returns":"void","signature":"udpSendResult(int status, int bytes)","description":"Udp send result.","tags":["thing","constructor","network.udp"],"updated":"2026-09-09"},{"name":"Succeeded","kind":"method","parameters":[],"returns":"bool","signature":"Succeeded() returns bool","description":"Succeeded.","tags":["thing","method","network.udp"],"exampleId":"method-Succeeded-3","updated":"2026-09-09"},{"name":"WouldBlock","kind":"method","parameters":[],"returns":"bool","signature":"WouldBlock() returns bool","description":"Would block.","tags":["thing","method","network.udp"],"exampleId":"method-WouldBlock-4","updated":"2026-09-09"},{"name":"Diagnostic","kind":"method","parameters":[],"returns":"text","signature":"Diagnostic() returns text","description":"Diagnostic.","tags":["thing","method","network.udp"],"exampleId":"method-Diagnostic-5","updated":"2026-09-09"}],"tags":["cpu","method","network","network.udp","source-example","thing","udp","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/network/udp/udp.yh","line":54,"sha256":"86f1afae57ddb278fb7a4fda81b70922cbe2ef263b2c663b3bc74c3fa5abfc23"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use udpSendResult","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using network.udp\n\n// Exchange bounded UDP datagrams; your application owns its protocol and session rules.\nudpSendResult sample = udpSendResult(1, 4)\nConsole.Log(Text.From(sample.status))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.network_udp__udpsendresult\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"network.udp\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/network/udp\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"d0b781b0d38146d3e4a4242c66c7453d6d071fdc3396562db43ce17e566909f3","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Succeeded-3","title":"udpSendResult.Succeeded","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using network.udp\n\n// Succeeded.\nudpSendResult instance = udpSendResult(1, 4)\nbool result = instance.Succeeded()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.network_udp__udpsendresult\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"network.udp\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/network/udp\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"13113846c09428b76b0087f1e8cf9b8895648dd8c26f60cec71b1cbea8cd64f3","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-WouldBlock-4","title":"udpSendResult.WouldBlock","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using network.udp\n\n// Would block.\nudpSendResult instance = udpSendResult(1, 4)\nbool result = instance.WouldBlock()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.network_udp__udpsendresult\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"network.udp\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/network/udp\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"214948faeed9864a0165284c2e01550f34d803789ec6259503ca56d6f62cdd15","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Diagnostic-5","title":"udpSendResult.Diagnostic","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using network.udp\n\n// Diagnostic.\nudpSendResult instance = udpSendResult(1, 4)\ntext result = instance.Diagnostic()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.network_udp__udpsendresult\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"network.udp\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/network/udp\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"842269c2823444607cfaa9f83de3591e79b5bd29a3da252266fb068787e89f7e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["status","bytes","udpSendResult","Succeeded","WouldBlock","Diagnostic"],"url":"https://demonhunterlabs.com/academy/api?item=network.udp--udpSendResult","json":"https://demonhunterlabs.com/reference/items/network.udp--udpSendResult.json","markdown":"https://demonhunterlabs.com/reference/text/network.udp--udpSendResult.md"}
