1 NAME
2 send_message - send a message to a user
3
4 SYNOPSIS
5 int send_message(string message)
6 int send_message(int echo)
7
8
9 DESCRIPTION
10 In the first form, send a message to the user associated with the
11 current object, returning the number of bytes that could be sent.
12 When used by the driver object, the string will be written to stderr.
13 In the second form, user input echoing will be turned off or on,
14 depending on the value of the argument being zero or non-zero,
15 respectively; the return value is 1 if input echoing could be set, or 0
16 otherwise.
17 When the output buffer has emptied, message_done() will be called in
18 the user object. If send_message() is called again before the output
19 buffer has fully drained, message_done() will not be called before the
20 output buffer has emptied completely.
21
22 SEE ALSO
23 kfun/query_ip_name, kfun/query_ip_number, kfun/send_datagram,
24 kfun/this_user, kfun/users
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.