Function tari_wallet_ffi::transport_tcp_create [−][src]
#[no_mangle]pub unsafe extern "C" fn transport_tcp_create(
listener_address: *const c_char,
error_out: *mut c_int
) -> *mut TariTransportType
Creates a tcp transport type
Arguments
listener_address
- The pointer to a char array
error_out
- Pointer to an int which will be modified to an error code should one occur, may not be null. Functions
as an out parameter.
Returns
*mut TariTransportType
- Returns a pointer to a tcp TariTransportType, null on error.
Safety
The transport_type_destroy
method must be called when finished with a TariTransportType to prevent a memory
leak