mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
add nonblocking flag to opcode map
This commit is contained in:
parent
ec55f6de6d
commit
24a0848a43
1 changed files with 6 additions and 0 deletions
|
|
@ -310,6 +310,8 @@ pub(crate) enum Opcode {
|
||||||
/// =======|=========
|
/// =======|=========
|
||||||
/// 0 | 0 indicating success
|
/// 0 | 0 indicating success
|
||||||
/// 1 | Connection index
|
/// 1 | Connection index
|
||||||
|
/// 2 | local port LSB (in case the specified port was 0)
|
||||||
|
/// 3 | local port MSB
|
||||||
///
|
///
|
||||||
/// # Errors
|
/// # Errors
|
||||||
///
|
///
|
||||||
|
|
@ -359,7 +361,11 @@ pub(crate) enum Opcode {
|
||||||
StdTcpStreamShutdown = 46,
|
StdTcpStreamShutdown = 46,
|
||||||
|
|
||||||
LoopbackRx = 47,
|
LoopbackRx = 47,
|
||||||
|
|
||||||
|
// do not use any numbers higher than 0x8000 as that is reserved for the nonblocking flag
|
||||||
}
|
}
|
||||||
|
#[allow(dead_code)]
|
||||||
|
pub(crate) const NONBLOCKING_FLAG:usize = 0x8000; // when set, modulates a Peek or Read to be nonblocking
|
||||||
|
|
||||||
#[derive(Debug, Archive, Serialize, Deserialize, Copy, Clone, Default)]
|
#[derive(Debug, Archive, Serialize, Deserialize, Copy, Clone, Default)]
|
||||||
pub(crate) struct SsidList {
|
pub(crate) struct SsidList {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue