Function xous::syscall::send_message[][src]

pub fn send_message(connection: CID, message: Message) -> Result<Result, Error>
Expand description

Send a message to a server. Depending on the mesage type (move or borrow), it will either block (borrow) or return immediately (move). If the message type is borrow, then the memory addresses pointed to will be unavailable to this process until this function returns.

If the server queue is full, this will block.

Errors

  • ServerNotFound: The server does not exist so the connection is now invalid
  • BadAddress: The client tried to pass a Memory message using an address it doesn’t own
  • Timeout: The timeout limit has been reached