/sockudp
Indice
The /sockudp command allows you to send data to a specific address at a specific port destination (See UDP sockets).
Note: if /sockudp fails, it sets $sock().wserr to the error value, and trigger on sockwrite with $sockerr”) set etc.
| Contents - 1 Synopsis - 2 Switches - 3 Parameters - 4 Example - 5 Compatibility - 6 See also |
Synopsis
/sockudp -bntkd [bindip]
Switches
- -b - Indicates that you are specifying the numbytes value which is the number of bytes you want send, the full line is sent otherwise
- -n - Appens a $crlf to the line being sent if it’s not a &binvar or if does not already end with a $crlf
- -t - Forces mIRC to send anything beginning with a & as plain text
- -k - Keeps the socket opened
- -d - Means you have specified the ip address as the bind address
Parameters
- [bindip] - If -d has been specified, the ip address you want to use as the bind address.
- The sockname name. - [port] - If specified, the local port to use, otherwise mIRC choose one randomly.
- The ip address you want to send to information to, use you localhost 127.0.0.1 with -k to create a listening socket. - The port you want to send to information to, that’s your listening port if you create a server. - [numbytes] - If -b has been specified, indicates the number of bytes you want to send.
- [text|%var|&binvar] - If specified, the message you want to send, can be a binary variable. You don’t want to specify that parameter if you create a server.
Example
Compatibility
Added: mIRC v5.5
Added on: 01/08/1999
Note: Individual switches were not taken into consideration.
See also
mIRC commands list