1. support osx. 2. support multi protocol use different event callback handler 3. support conf file are similar to nginx