Completion token, which will be supplied to caller when pending send operation completes.
rem_addr
The remote destination address.
addr_len
Size of remote address.
callback
If supplied, the callback will be called once a pending transmission has completed. If the function completes immediately (i.e. return code is not PJ_EPENDING), the callback will not be called.
Returns
Should return PJ_SUCCESS only if data has been succesfully queued to operating system for transmission. Otherwise it may return PJ_EPENDING if the underlying transport can not send the data immediately and will send it later, which in this case caller doesn't have to do anything except wait the calback to be called, if it supplies one. Other return values indicate the error code.
Instruct the transport to initiate graceful shutdown procedure. After all objects release their reference to this transport, the transport will be deleted.
Forcefully destroy this transport regardless whether there are objects that currently use this transport. This function should only be called by transport manager or other internal objects (such as the transport itself) who know what they're doing. Application should use pjsip_transport_shutdown() instead.
Parameters
transport
The transport.
Returns
PJ_SUCCESS on success.
The documentation for this struct was generated from the following file: