Package reactor.net.config

Examples of reactor.net.config.ServerSocketOptions


      servers[i] = new DatagramServerSpec<byte[], byte[]>(NettyDatagramServer.class)
          .env(env)
          .dispatcher(Environment.THREAD_POOL)
          .listen(port)
          .multicastInterface(multicastIface)
          .options(new ServerSocketOptions()
                       .reuseAddr(true))
          .codec(StandardCodecs.BYTE_ARRAY_CODEC)
          .consumeInput(new Consumer<byte[]>() {
            int count = 0;
View Full Code Here


    final int port = SocketUtils.findAvailableTcpPort();

    TcpServer<byte[], byte[]> server = new TcpServerSpec<byte[], byte[]>(NettyTcpServer.class)
        .env(env)
        .synchronousDispatcher()
        .options(new ServerSocketOptions()
                     .backlog(1000)
                     .reuseAddr(true)
                     .tcpNoDelay(true))
        .listen(port)
        .codec(new LengthFieldCodec<byte[], byte[]>(StandardCodecs.BYTE_ARRAY_CODEC))
View Full Code Here

    final int port = SocketUtils.findAvailableTcpPort();

    TcpServer<Frame, Frame> server = new TcpServerSpec<Frame, Frame>(NettyTcpServer.class)
        .env(env)
        .synchronousDispatcher()
        .options(new ServerSocketOptions()
                     .backlog(1000)
                     .reuseAddr(true)
                     .tcpNoDelay(true))
        .listen(port)
        .codec(new FrameCodec(2, FrameCodec.LengthField.SHORT))
View Full Code Here

TOP

Related Classes of reactor.net.config.ServerSocketOptions

Copyright © 2018 www.massapicom. 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.