pub type EndpointPair = *mut c_void;