Adding a event library template for server network programming