All Downloads are FREE. Search and download functionalities are using the official Maven repository.

loci.runtime.Channel.scala Maven / Gradle / Ivy

The newest version!
package loci
package runtime

case class Channel(name: String, anchor: String, remote: Remote.Reference, system: System)
    extends transmitter.Channel {

  val doReceive = Notice.Stream[MessageBuffer]
  val doClosed = Notice.Steady[Unit]

  val receive = doReceive.notice
  val closed = doClosed.notice

  def send(message: MessageBuffer) = system.sendMessage(this, message)
  def close() = system.closeChannel(this, notifyRemote = true)
  def open = system.isChannelOpen(this)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy