@ -40,16 +40,16 @@ extern "C" {
/* pick a port number that is currently unused by either tcp or udp. return
/* pick a port number that is currently unused by either tcp or udp. return
0 on failure . */
0 on failure . */
int grpc_pick_unused_port ( ) ;
int grpc_pick_unused_port ( void ) ;
/* pick a port number that is currently unused by either tcp or udp. abort
/* pick a port number that is currently unused by either tcp or udp. abort
on failure . */
on failure . */
int grpc_pick_unused_port_or_die ( ) ;
int grpc_pick_unused_port_or_die ( void ) ;
/* Return a port which was previously returned by grpc_pick_unused_port().
/* Return a port which was previously returned by grpc_pick_unused_port().
* Implementations of grpc_pick_unused_port ( ) backed by a portserver may limit
* Implementations of grpc_pick_unused_port ( ) backed by a portserver may limit
* the total number of ports available ; this lets a binary return its allocated
* the total number of ports available ; this lets a binary return its allocated
* ports back to the server if it is going to allocate a large number . */
* ports back to the server if it is going to allocate a large number . */
void grpc_recycle_unused_port ( ) ;
void grpc_recycle_unused_port ( int port ) ;
# ifdef __cplusplus
# ifdef __cplusplus
}
}