| RTS API Documentation
    1.10.11
    | 
 Collaboration diagram for Port Allocation:
 Collaboration diagram for Port Allocation:| Functions | |
| switch_status_t | switch_core_port_allocator_new (_In_ const char *ip, _In_ switch_port_t start, _In_ switch_port_t end, _In_ switch_port_flag_t flags, _Out_ switch_core_port_allocator_t **new_allocator) | 
| Initilize the port allocator.  More... | |
| switch_status_t | switch_core_port_allocator_request_port (_In_ switch_core_port_allocator_t *alloc, _Out_ switch_port_t *port_ptr) | 
| Get a port from the port allocator.  More... | |
| switch_status_t | switch_core_port_allocator_free_port (_In_ switch_core_port_allocator_t *alloc, _In_ switch_port_t port) | 
| Return unused port to the port allocator.  More... | |
| void | switch_core_port_allocator_destroy (_Inout_ switch_core_port_allocator_t **alloc) | 
| destroythe port allocator  More... | |
| void switch_core_port_allocator_destroy | ( | _Inout_ switch_core_port_allocator_t ** | alloc | ) | 
| switch_status_t switch_core_port_allocator_free_port | ( | _In_ switch_core_port_allocator_t * | alloc, | 
| _In_ switch_port_t | port | ||
| ) | 
Return unused port to the port allocator.
| alloc | the allocator object | 
| port | the port | 
Referenced by switch_rtp_release_port().
| switch_status_t switch_core_port_allocator_new | ( | _In_ const char * | ip, | 
| _In_ switch_port_t | start, | ||
| _In_ switch_port_t | end, | ||
| _In_ switch_port_flag_t | flags, | ||
| _Out_ switch_core_port_allocator_t ** | new_allocator | ||
| ) | 
Initilize the port allocator.
| start | the starting port | 
| end | the ending port | 
| flags | flags to change allocator behaviour (e.g. only even/odd portnumbers) | 
| new_allocator | new pointer for the return value | 
Referenced by switch_rtp_request_port().
| switch_status_t switch_core_port_allocator_request_port | ( | _In_ switch_core_port_allocator_t * | alloc, | 
| _Out_ switch_port_t * | port_ptr | ||
| ) | 
Get a port from the port allocator.
| alloc | the allocator object | 
| port_ptr | a pointer to the port | 
Referenced by switch_rtp_request_port().
 1.8.13
 1.8.13