Barrelfish
|
Port allocator for netd. More...
Functions | |
void | init_free_ports (void) |
Initialization code for port allocator. | |
uint16_t | alloc_tcp_port (void) |
allocates a tcp port | |
uint16_t | alloc_udp_port (void) |
allocates a tcp port | |
uint16_t | alloc_specific_port (uint16_t port, net_ports_port_type_t type) |
allocates a specific port. this is the backend function for bind More... | |
void | free_port (uint16_t port, net_ports_port_type_t type) |
frees a port and does not care whether it is allocated before or not! More... | |
Port allocator for netd.
This file is part of the net "daemon"
|
inline |
allocates a specific port. this is the backend function for bind
port | the port number |
type | UDP or TCP |
|
inline |
frees a port and does not care whether it is allocated before or not!
port | the port number |
type | UDP or TCP |