Function channel_protocol::generate_channel[][src]

pub fn generate_channel() -> u32

Generates a new random channel ID for use when initiating a file transfer.

Errors

If this function encounters any errors, it will return an error message string

Examples

use channel_protocol::*;

let channel_id = generate_channel();