C-style select server setup