Add function to get a server from a pool of servers, instead of malloc'ing it.