SendToClient

Top  Previous  Next

Message

 

SendToClient <clientnum> <message>

 

Originator

 

Client

 

Response

 

Error: client number is invalid

Error: server is not permitting client-client communications

Error: client <clientnum> not found

Error: client <clientnum> not accepting messages

Error: no message to send

Info: message successfully sent to client <clientnum>

SyntaxError: insufficient parameters to SendToClient

Warning: Sending a client message to yourself!

Warning: No listening clients receiving broadcast message!

 

Response (immediate socket)

 

Success

Failure

 

Details

 

If successful, causes the generation of a ClientMessage message to the destination client (q.v.).

 

For a message to be sent, all of the following conditions must be met:

The destination client number must be valid. Use the client number -1 to broadcast to all other clients.
The server must allow client–client communications (determined on the server console menu).
The receiving client must permit incoming client–client messages (determined by the RefuseClientMessages and PermitClientMessages commands)

 

Revision history

 

Implemented in WhiskerServer version 2.0.

 

See also

 

Client-client communications