Function influent::create_udp_client [] [src]

pub fn create_udp_client<'a>(hosts: Vec<&'a str>) -> UdpClient<'a>

Simple factory of UdpClient with LineSerializer Takes one parameter which is a host and port.

Examples

use influent::create_udp_client;
let client = create_udp_client(vec!["127.0.0.1:8089"]);