Struct ipcon_sys::ipcon_msg::IpconMsgBody
source · pub struct IpconMsgBody {
pub msg_type: IpconMsgType,
pub peer: String,
pub group: Option<String>,
pub buf: Vec<u8>,
}Expand description
The body of a IPCON message.
- msg_type
- IpconMsgTypeNormal : a normal message.
- IpconMsgTypeGroup : a multicast group message.
- IpconMsgTypeKevent : a IPCON kernel module message
- IpconMsgTypeInvalid: an invalid IPCON message
- peer
The name of peer who sent this message. - group
The group of this message. It will be None if the message is not a multicast group message. - buf
Message content.
Fields§
§msg_type: IpconMsgType§peer: String§group: Option<String>§buf: Vec<u8>