Function indy::api::agent::indy_agent_close_connection
[−]
[src]
#[no_mangle]pub extern "C" fn indy_agent_close_connection(
command_handle: i32,
connection_handle: i32,
cb: Option<extern "C" fn(_: i32, _: ErrorCode)>
) -> ErrorCode
Closes agent connection.
Note that this call works for both incoming and outgoing connections.
Params
command_handle: command handle to map callback to caller context. connection_handle: Connection handle returned by indy_agent_connect or indy_agent_listen calls. cb: Callback that will be called after connection 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