serverglen commented on issue #1460:
URL: https://github.com/apache/incubator-brpc/issues/1460#issuecomment-882222125


   > PR 与这个不是一回事吧? 看 PR 中只是添加了一个默认 `IP_ANY` 的接口, 而上面提到的功能本身就是支持的.
   
   #1461 
   
   目前 brpc server 的4个Start函数:
   
   - int Server::Start(const butil::EndPoint& endpoint, const ServerOptions* 
opt);
   - int Server::Start(const char* ip_port_str, const ServerOptions* opt);
   - int Server::Start(int port, const ServerOptions* opt);
   - int Server::Start(const char* ip_str, PortRange port_range, const 
ServerOptions *opt);
   
   最后一个支持PortRange,但是需要用户手工传一个 const char* ip_str参数
   
   这个PR 新增了如下函数:
   int Server::Start(PortRange port_range, const ServerOptions* opt);
   不需要传const char* ip_str参数,这种方式更加方便。
   @wasphin @lorinlee 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to