[−][src]Function comms_service::build_packet
pub fn build_packet(
payload: &[u8],
source: u16,
dest: u16,
length: u16,
sat: Ipv4Addr,
ground: Ipv4Addr
) -> CommsResult<Vec<u8>>
Takes the payload and then wraps it into a UDP packet.
pub fn build_packet(
payload: &[u8],
source: u16,
dest: u16,
length: u16,
sat: Ipv4Addr,
ground: Ipv4Addr
) -> CommsResult<Vec<u8>>
Takes the payload and then wraps it into a UDP packet.