[][src]Function sunrise_kernel::ipc::connect_to_named_port

pub fn connect_to_named_port(
    name: [u8; 12]
) -> Result<ClientSession, UserspaceError>

Connects to a named port.

Returns a new ClientSession. Note that this is a blocking call that rendez-vous with the associated ServerPort. In other words, it waits until the associated ServerPort calls accept.

Errors

Returns ExceedingMaximum if the name doesn't contain a \0.

Returns NoSuchEntry if the associated Named Port is not registered.

Returns PortRemoteDead if all handles to the associated ServerPort are closed.