Function mles_utils::write_cid_to_hdr
[−]
[src]
pub fn write_cid_to_hdr(key: u64, hdrv: Vec<u8>) -> Vec<u8>
Write a random connection id in network byte order to the header.
Example
use mles_utils::{write_hdr, write_cid_to_hdr, do_hash}; let hashstr = "A string".to_string(); let hashable = vec![hashstr]; let key = do_hash(&hashable); let mut hdr = write_hdr(515); let hdr = write_cid_to_hdr(key, hdr);