org.vertx.scala.core

net

package net

Visibility
  1. Public
  2. All

Type Members

  1. final class NetClient extends Self with TCPSupport with ClientSSLSupport

    A TCP/SSL client.

    A TCP/SSL client.

    Multiple connections to different servers can be made using the same instance.

    This client supports a configurable number of connection attempts and a configurable delay between attempts.

    If an instance is instantiated from an event loop then the handlers of the instance will always be called on that same event loop. If an instance is instantiated from some other arbitrary Java thread (i.e. when using embedded) then an event loop will be assigned to the instance and used when any of its handlers are called.

    Instances of this class are thread-safe.

  2. final class NetServer extends Self with ServerSSLSupport with ServerTCPSupport with Closeable

    Represents a TCP or SSL server

    Represents a TCP or SSL server

    If an instance is instantiated from an event loop then the handlers of the instance will always be called on that same event loop. If an instance is instantiated from some other arbitrary Java thread (i.e. when running embedded) then and event loop will be assigned to the instance and used when any of its handlers are called.

    Instances of this class are thread-safe.

  3. final class NetSocket extends Self with ReadStream with WriteStream

    Represents a socket-like interface to a TCP/SSL connection on either the client or the server side.

    Represents a socket-like interface to a TCP/SSL connection on either the client or the server side.

    Instances of this class are created on the client side by an org.vertx.scala.core.net.NetClient when a connection to a server is made, or on the server side by a org.vertx.scala.core.net.NetServer when a server accepts a connection.

    It implements both org.vertx.scala.core.streams.ReadStream and org.vertx.scala.core.streams.WriteStream so it can be used with org.vertx.java.core.streams.Pump to pump data with flow control.

    Instances of this class are not thread-safe.

Value Members

  1. object NetClient

    Factory for org.vertx.scala.core.net.NetClient instances.

  2. object NetServer

    Factory for org.vertx.scala.core.net.NetServer instances.

  3. object NetSocket

Ungrouped