Examples of RxNetServer


Examples of io.vertx.rxcore.java.net.RxNetServer

  // Services
 
  /** Create NetServer */
  public RxNetServer createNetServer() {
    return new RxNetServer(core.createNetServer());
  }
View Full Code Here

Examples of io.vertx.rxcore.java.net.RxNetServer

public class NetIntegrationTest extends TestVerticle {

  @Test
  public void testSimpleConnect() {

    final RxNetServer rxNetServer = new RxNetServer(vertx.createNetServer());
    Observable<RxNetSocket> connectStream = rxNetServer.connectStream();
    Observable<RxNetServer> listenObs = rxNetServer.listen(1234);

    connectStream.subscribe(new Action1<RxNetSocket>() {
      @Override
      public void call(final RxNetSocket rxNetSocket) {
        System.out.println("Got a connection");
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.