hpfeeds 0.1.0

Hpfeeds3 protocol library
Documentation
1
2
3
4
5
6
7
8
use std::error::Error;
use hpfeeds::Hpfeeds;

fn main() -> Result<(), Box<Error>> {
    let hpf = Hpfeeds::new("host.com", 10000, "hpname", "elongated_muskrat")?;
    hpf.publish_to("chan1", b"hp hit")?;
    Ok(())
}