object Server extends ServerPlatform
- Alphabetic
- By Inheritance
- Server
- ServerPlatform
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type Address = InetSocketAddress
- Definition Classes
- ServerPlatform
- sealed trait Condition extends Update
- final class Config extends ConfigLike
- final class ConfigBuilder extends ConfigLike
- trait ConfigLike extends AnyRef
The base trait for
Config
andConfigBuilder
describes the settings used to boot scsynth in realtime or non-realtime mode, as well as its server address and port.The base trait for
Config
andConfigBuilder
describes the settings used to boot scsynth in realtime or non-realtime mode, as well as its server address and port.You obtain a
ConfigBuilder
by callingServer.Config()
. This builder can then be mutated and will be implicitly converted to an immutableConfig
when required.See
ConfigBuilder
for its default values. - final case class Counts(c: StatusReply) extends Update with Product with Serializable
- type Listener = PartialFunction[Update, Unit]
- sealed trait Update extends AnyRef
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def allocPort(transport: Transport): Int
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def boot(name: String = "localhost", config: Config = Config().build, clientConfig: Client.Config = Client.Config().build)(listener: ServerConnection.Listener = PartialFunction.empty): ServerConnection
- def boot: ServerConnection
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def connect(name: String = "localhost", config: Config = Config().build, clientConfig: Client.Config = Client.Config().build)(listener: ServerConnection.Listener = PartialFunction.empty): ServerConnection
- def connect: ServerConnection
- def default: Server
- implicit def defaultGroup(s: Server): Group
- def defaultProgram: String
The default file path to
scsynth
.The default file path to
scsynth
. If the runtime (system) property"SC_HOME"
is provided, this specifies the directory ofscsynth
. Otherwise, an environment (shell) variable named"SC_HOME"
is checked. If neither exists, this returnsscsynth
in the current working directory.- Definition Classes
- ServerPlatform
- def dummy(name: String = "dummy", config: Config = Config().build, clientConfig: Client.Config = Client.Config().build): Server
Creates an unconnected server proxy.
Creates an unconnected server proxy. This may be useful for creating NRT command files. Any attempt to try to send messages to the server will fail.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isLocal(addr: Address): Boolean
- Definition Classes
- ServerPlatform
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def prepareConnection(serverConfig: Config, clientConfig: Client.Config): (Address, osc.Client)
- Attributes
- protected
- Definition Classes
- ServerPlatform
- def printError(name: String, t: Throwable): Unit
- def renderNRT(dur: Double, config: Config): Processor[Int] with Prepared
Starts an NRT rendering process based on the NRT parameters of the configuration argument.
Starts an NRT rendering process based on the NRT parameters of the configuration argument.
Note: The returned process must be explicitly started by calling
start()
- dur
the duration of the bounce, used to emit process updates
- config
the server configuration in which
nrtCommandPath
must be set- returns
the process whose return value is the process exit code of scsynth (0 indicating success)
- def run(config: Config = Config().build)(code: (Server) => Unit): Unit
Utility method to test code quickly with a running server.
Utility method to test code quickly with a running server. This boots a server and executes the passed in code when the server is up. A shutdown hook is registered to make sure the server is destroyed when the VM exits.
- def run(code: (Server) => Unit): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def version(config: Config = Config().build): Try[(String, String)]
- def version: Try[(String, String)]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object Config
- object ConfigBuilder
- case object Offline extends Condition with Product with Serializable
- case object Running extends Condition with Product with Serializable
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated