Network code and basic server data structures