blob: f508dd6434878139bb801b3e93670d8dea3ab109 [file] [log] [blame]
Zesstrad59c3892019-11-28 20:53:39 +01001SYNOPSIS
2 int send_udp(string host, int port, bytes message)
Zesstra715ec202025-07-09 22:18:31 +02003 int send_udp(string host, int port, int * message)
MG Mud User88f12472016-06-24 23:31:02 +02004
Zesstra715ec202025-07-09 22:18:31 +02005DESCRIPTION
6 Sends the <message> in an UDP packet to the given host and port
7 number.
MG Mud User88f12472016-06-24 23:31:02 +02008
Zesstra715ec202025-07-09 22:18:31 +02009 The efun causes the privilege violation ("send_udp").
MG Mud User88f12472016-06-24 23:31:02 +020010
Zesstra715ec202025-07-09 22:18:31 +020011 Returns 1 on success, 0 on failure.
Zesstrad59c3892019-11-28 20:53:39 +010012
Zesstra715ec202025-07-09 22:18:31 +020013 Note: On some machines a failed send_udp() will not be registered
14 until the next send_udp() - the latter one might return '0' even
15 if itself was successful.
Zesstrad59c3892019-11-28 20:53:39 +010016
Zesstra715ec202025-07-09 22:18:31 +020017BUGS
18 If the <host> is given as a fully qualified name (instead of
19 an IP address), the execution will block until the name is resolved.
Zesstrad59c3892019-11-28 20:53:39 +010020
Zesstra715ec202025-07-09 22:18:31 +020021HISTORY
22 LDMud 3.2.9 renamed this efun from send_imp(), and also changed the
23 privilege violation string and the apply names.
Zesstrad59c3892019-11-28 20:53:39 +010024
Zesstra715ec202025-07-09 22:18:31 +020025SEE ALSO
Zesstrad59c3892019-11-28 20:53:39 +010026 query_udp_port(E), receive_udp(M)