mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
Merge branch 'main' of github.com:betrusted-io/xous-core into main
This commit is contained in:
commit
0f755629c0
1 changed files with 2 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ impl ConnectRequest {
|
|||
}
|
||||
}
|
||||
|
||||
/// Request a connection to the nameserver-managed `name`.
|
||||
pub fn connect(name: &str) -> Option<crate::CID> {
|
||||
let mut request = ConnectRequest::new(name)?;
|
||||
let ns_cid = nameserver();
|
||||
|
|
@ -96,6 +97,7 @@ pub fn connect(name: &str) -> Option<crate::CID> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Return the connection ID of the nameserver
|
||||
pub(crate) fn nameserver() -> crate::CID {
|
||||
static NAMESERVER_CID: AtomicU32 = AtomicU32::new(0);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue