send_udp

ldmud-3.3.719/doc/efun/send_udp · 863 B

From the archive ldmud-3.3.719.tar.gz

Download the archive   « Back to the archive contents

SYNOPSIS
        int send_udp(string host, int port, string message)
        int send_udp(string host, int port, int * message)

DESCRIPTION
        Sends The message in an UDP packet to the given host and port
        number.

        The efun causes the privilege violation ("send_udp").

        Returns 1 on success, 0 on failure.

        Note: On some machines a failed send_udp() will not be registered
        until the next send_udp() - the latter one might return '0' even
        if itself was successful.

BUG
        If the <host> is given as a fully qualified name (instead of
        an IP address), the execution will block until the name is resolved.

HISTORY
        LDMud 3.2.9 renamed this efun from send_imp(), and also changed the
          privilege violation string and the apply names.

SEE ALSO
        query_udp_port(E), receive_udp(M)

Site Stats

Snippets: 1791
Codebases: 571