v1.2.112 - kfun - send_datagram

NAME

send_datagram - send a message on the datagram channel

SYNOPSIS

int send_datagram(string message)

DESCRIPTION

Send a message on the datagram channel of a binary user object. At least one message must have been received on the same channel before this function can be used. The return value is the length of the message if it could be sent, or 0 otherwise. No more than one datagram can be sent per user object during each thread.

ERRORS

An error will result if the current object has no datagram channel.

SEE ALSO

kfun/datagram_challenge, kfun/query_ip_name, kfun/query_ip_number, kfun/send_message, kfun/this_user, kfun/users