From WikiChip
Editing mirc/commands/sockudp
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{ | + | {{mIRC menu}} |
− | The '''/sockudp command''' allows you to send data to a specific address at a specific port destination (See | + | The '''/sockudp command''' allows you to send data to a specific address at a specific port destination (See [[UDP Sockets - mIRC|UDP sockets]]). |
− | '''Note''': if /sockudp fails, it sets | + | '''Note''': if /sockudp fails, it sets [[$sock identifier - mIRC|$sock().wserr]] to the error value, and trigger on sockwrite with {{mIRC|$sockerr}} set etc. |
== Synopsis == | == Synopsis == | ||
− | /sockudp - | + | /sockudp -bntkd [bindip] <name> [port] <ipaddress> <port> [numbytes] [text|%var|&binvar] |
== Switches == | == Switches == | ||
Line 13: | Line 13: | ||
* '''-k''' - Keeps the socket opened | * '''-k''' - Keeps the socket opened | ||
* '''-d''' - Means you have specified the ip address as the bind address | * '''-d''' - Means you have specified the ip address as the bind address | ||
− | |||
− | |||
== Parameters == | == Parameters == | ||
Line 26: | Line 24: | ||
== Example == | == Example == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Compatibility == | == Compatibility == | ||
Line 61: | Line 32: | ||
* [[List of commands - mIRC|List of commands]] | * [[List of commands - mIRC|List of commands]] | ||
* [[List of identifiers - mIRC|List of identifiers]] | * [[List of identifiers - mIRC|List of identifiers]] | ||
− | * | + | * [[on udpread - mIRC|on udpread]] |
− | * | + | * [[on sockwrite - mIRC|on sockwrite]] |
− | * | + | * [[$sockerr - Identifiers |$sockerr]] |
{{mIRC command list}} | {{mIRC command list}} | ||
[[Category:mIRC commands|sockudp command - mIRC]] | [[Category:mIRC commands|sockudp command - mIRC]] |