Object

spinoco.fs2.interop.ssl.tcp.SSLSocket

impl

Related Doc: package SSLSocket

Permalink

object impl

Source
SSLSocket.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. impl
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class SocketStatus[F[_]](buff: Chunk[Byte], handshakeInProgress: Boolean, notifyHandshakeDone: Vector[F[Unit]]) extends Product with Serializable

    Permalink

    Status of the socket

    Status of the socket

    buff

    Remaining data that was acquired during handshaking but were not consumed by any read operation

    handshakeInProgress

    indication that handshake is in progress.

    notifyHandshakeDone

    If handshakeInProgress is true, this contains all operations to be notified when handshake is done.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object SocketStatus extends Serializable

    Permalink
  5. def acquireFromBuffer[F[_]](max: Int, statusRef: Ref[F, SocketStatus[F]])(implicit F: Async[F]): F[Chunk[Byte]]

    Permalink

    Acquires up to max bytes from the chunk in buffer.

    Acquires up to max bytes from the chunk in buffer. May return empty chunk

  6. def appendToBuffer[F[_]](chunk: Chunk[Byte], statusRef: Ref[F, SocketStatus[F]])(implicit F: Async[F]): F[Unit]

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def awaitHandshakeComplete[F[_]](statusRef: Ref[F, SocketStatus[F]])(implicit F: Async[F]): F[Unit]

    Permalink

    Invoked when handshake shall be in process and shall finish when handshake is complete

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def concat(a: Chunk[Byte], b: Chunk[Byte]): Chunk[Byte]

    Permalink

    concats a, b if they are nonempty *

  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def performHandshake[F[_]](socket: Socket[F], sslEngine: SSLEngine[F], statusRef: Ref[F, SocketStatus[F]], handshakeTimeout: Option[FiniteDuration], writeSemaphore: Semaphore[F], readSemaphore: Semaphore[F])(implicit F: Async[F]): F[Unit]

    Permalink

    Perform SSL handshake.

    Perform SSL handshake. This completes when handshake is complete and will trigger all handshake awaiting tasks to be run.

    socket

    Socket to send/receive raw data

    sslEngine

    SSL engine

    statusRef

    Status reference to acquire handshake lock and register for callback

    handshakeTimeout

    Timeout to perform the handshake

  21. def read[F[_]](socket: Socket[F], sslEngine: SSLEngine[F], maxSize: Int, timeout: Option[FiniteDuration], statusRef: Ref[F, SocketStatus[F]], writeSemaphore: Semaphore[F], readSemaphore: Semaphore[F])(implicit F: Async[F]): F[Option[Chunk[Byte]]]

    Permalink

    Perform read operation of up to maxSize bytes.

    Perform read operation of up to maxSize bytes.

    May return None indicating EOF. If handshake needs to be done during the read process, this will perform that handshake before returning.

    socket

    Socket to use to receive data

    sslEngine

    SSL Engine

    maxSize

    Max size of data to return (may be less or empty)

    timeout

    Timeout to await the read operation

    statusRef

    A reference to state

    writeSemaphore

    Write semaphore guarding any writed

    readSemaphore

    Read semaphore guarding any reads

  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def write[F[_]](socket: Socket[F], sslEngine: SSLEngine[F], bytes: Chunk[Byte], timeout: Option[FiniteDuration], statusRef: Ref[F, SocketStatus[F]], writeSemaphore: Semaphore[F], readSemaphore: Semaphore[F])(implicit F: Async[F]): F[Unit]

    Permalink

    Write supplied data to the destination socket.

    Write supplied data to the destination socket.

    When the handshake is in process, this will complete _AFTER_ handshake is complete.

    socket

    Socket to write encrypted data to

    sslEngine

    SSLEngine to use

    bytes

    bytes to write

    timeout

    A timeout to write the data

Inherited from AnyRef

Inherited from Any

Ungrouped