{"id":"network.udp--udpSocket","name":"udpSocket","owner":"yeho","package":"network.udp","kind":"thing","signature":"external thing udpSocket","description":"A udp socket record carrying identity, openStatus.","context":"Exchange bounded UDP datagrams; your application owns its protocol and session rules.","parameters":[],"returns":"void","members":[{"name":"identity","kind":"field","type":"int","description":"Stores identity as int.","signature":"int identity","tags":["thing","field","network.udp"],"updated":"2026-09-09"},{"name":"openStatus","kind":"field","type":"int","description":"Stores open status as int.","signature":"int openStatus","tags":["thing","field","network.udp"],"updated":"2026-09-09"},{"name":"udpSocket","kind":"constructor","parameters":[{"name":"identity","type":"int","description":"Identity."},{"name":"openStatus","type":"int","description":"Open status."}],"returns":"void","signature":"udpSocket(int identity, int openStatus)","description":"Udp socket.","tags":["thing","constructor","network.udp"],"updated":"2026-09-09"},{"name":"Opened","kind":"method","parameters":[],"returns":"bool","signature":"Opened() returns bool","description":"Opened.","tags":["thing","method","network.udp"],"exampleId":"method-Opened-3","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-4","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":31,"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 udpSocket","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.\nudpSocket sample = udpSocket(1, 1)\nConsole.Log(Text.From(sample.identity))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.network_udp__udpsocket\"\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":"68d570b2205552330e89fb6d26315ff7402efd5091ff337d7eb3ddeae25767de","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Opened-3","title":"udpSocket.Opened","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using network.udp\n\n// Opened.\nudpSocket instance = udpSocket(1, 1)\nbool result = instance.Opened()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.network_udp__udpsocket\"\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":"972cb171b28de96bae78ac00ec1196facf324add4af02a5edd6ef670d0da66c8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Diagnostic-4","title":"udpSocket.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.\nudpSocket instance = udpSocket(1, 1)\ntext result = instance.Diagnostic()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.network_udp__udpsocket\"\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":"b650246b8781e59239cfe9465d5127aeb14c748596c754b99290247745e29259","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["identity","openStatus","udpSocket","Opened","Diagnostic"],"url":"https://demonhunterlabs.com/academy/api?item=network.udp--udpSocket","json":"https://demonhunterlabs.com/reference/items/network.udp--udpSocket.json","markdown":"https://demonhunterlabs.com/reference/text/network.udp--udpSocket.md"}
