Examples of RsfContext


Examples of net.hasor.rsf.runtime.RsfContext

* @version : 2014年9月12日
* @author 赵永春(zyc@hasor.net)
*/
public class Client {
    public void after() throws IOException, URISyntaxException, InterruptedException {
        RsfContext context = new ServerRsfContext();
        RsfClientFactory factary = new RsfClientFactory(context);
        RsfClient client = factary.connect("127.0.0.1", 8000);
        //
        RsfService services = client.getRemoteService("net.hasor.rsf._test.TestServices");
        //
View Full Code Here

Examples of net.hasor.rsf.runtime.RsfContext

        //
        Bootstrap boot = new Bootstrap();
        boot.group(this.rsfContext.getLoopGroup());
        boot.channel(NioSocketChannel.class);
        boot.option(ChannelOption.SO_KEEPALIVE, true);
        final RsfContext rsfContext = this.rsfContext;
        boot.handler(new ChannelInitializer<SocketChannel>() {
            public void initChannel(SocketChannel ch) throws Exception {
                ch.pipeline().addLast(new RSFCodec(), new ClientHandler(rsfContext));
            }
        });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.