Function indy::api::agent::indy_agent_close_listener [] [src]

#[no_mangle]
pub extern "C" fn indy_agent_close_listener(
    command_handle: i32,
    listener_handle: i32,
    cb: Option<extern "C" fn(_: i32, _: ErrorCode)>
) -> ErrorCode

Closes listener and stops listening for agent connections.

Note that all opened incomming connections will be closed automatically.

Params

command_handle: command handle to map callback to caller context. listener_handle: Listener handle returned by indy_agent_listen call. cb: Callback that will be called after listener closed or on error. Will be called exactly once.

Returns

Error code cb: - xcommand_handle: command handle to map callback to caller context. - err: Error code

Errors