Java 类org.jboss.netty.channel.ServerChannelFactory 实例源码

项目:mandrel    文件:NettyServerTransport.java   
public void start(ServerChannelFactory serverChannelFactory) {
    bootstrap = new ServerBootstrap(serverChannelFactory);
    bootstrap.setOptions(nettyServerConfig.getBootstrapOptions());
    bootstrap.setPipelineFactory(pipelineFactory);
    SocketAddress address = local ? new LocalAddress("mandrel") : new InetSocketAddress(requestedPort);
    serverChannel = bootstrap.bind(address);
}
项目:elasterix    文件:SipServer.java   
public void setServerChannelFactory(ServerChannelFactory channelFactory) {
    this.serverChannelFactory = channelFactory;
}