:orphan: .. index:: pair: group; Test API to allocate L4 port .. _doxid-group__tapi__conf__l4__port: Test API to allocate L4 port ============================ .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block // global functions :ref:`te_errno` :ref:`tapi_cfg_l4_port_alloc`(const char* ta, int family, int type, uint16_t* port); .. _details-group__tapi__conf__l4__port: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Global Functions ---------------- .. index:: pair: function; tapi_cfg_l4_port_alloc .. _doxid-group__tapi__conf__l4__port_1ga2ee390f0cb4a5b95277980fa7b0aefa6: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`te_errno` tapi_cfg_l4_port_alloc(const char* ta, int family, int type, uint16_t* port) Allocate free L4 port. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - family - Address family. * - type - ``SOCK_STREAM`` or ``SOCK_DGRAM``. * - port - Location for allocated port. .. rubric:: Returns: Status code.