Function xous::syscall::connect_for_process
source · pub fn connect_for_process(pid: PID, sid: SID) -> Result<Result, Error>
Expand description
Connect to a server on behalf of another process. This can be used by a name resolution server to securely create connections without disclosing a SID.
§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
- ServerQueueFull: The queue in the server is full, and this call would block
- Timeout: The timeout limit has been reached