FreeSWITCH API Documentation
1.7.0
|
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().