Sets a custom transport factory for the remote. The caller can use this function to override the transport used for this remote when performing network operations.
the remote to configure
the function to use to create a transport
opaque parameter passed to transport_cb
0 or an error code