The /sockudp command allows you to send data to a specific address at a specific port destination (See UDP sockets).
/sockudp -bntkd [bindip] <name> [port] <ipaddress> <port> [numbytes] [text|%var|&binvar]
- -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
- [bindip] - If -d has been specified, the ip address you want to use as the bind address.
- <name> - The sockname name.
- [port] - If specified, the local port to use, otherwise mIRC choose one randomly.
- <ipaddress> - The ip address you want to send to information to, use you localhost 127.0.0.1 with -k to create a listening socket.
- <port> - 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.
Added: mIRC v5.5
Added on: 08 Jan 1999
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.