mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +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> {
|
pub fn connect(name: &str) -> Option<crate::CID> {
|
||||||
let mut request = ConnectRequest::new(name)?;
|
let mut request = ConnectRequest::new(name)?;
|
||||||
let ns_cid = nameserver();
|
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 {
|
pub(crate) fn nameserver() -> crate::CID {
|
||||||
static NAMESERVER_CID: AtomicU32 = AtomicU32::new(0);
|
static NAMESERVER_CID: AtomicU32 = AtomicU32::new(0);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue