@ Deprecated public RpcInternalContext setLocalAddress ( String host , int port ) { if ( host == null ) { return this ; } if ( port < 0 || port > 0xFFFF ) { port = 0 ; } // 提前检查是否为空，防止createUnresolved抛出异常，损耗性能 this . localAddress = InetSocketAddress . createUnresolved ( host , port ) ; return this ; }
set local address .