trait Server extends ServerLike with Model[Update]
The client-side representation of the SuperCollider server.
Additional operations are available by importing Ops._
.
- Self Type
- Server
- Alphabetic
- By Inheritance
- Server
- Model
- ServerLike
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def !(p: Packet): Unit
Sends out an OSC packet without waiting for any replies.
- abstract def !![A](packet: Packet, timeout: Duration = 6.seconds)(handler: PartialFunction[Message, A]): Future[A]
Sends out an OSC packet that generates some kind of reply, and returns immediately.
Sends out an OSC packet that generates some kind of reply, and returns immediately. It registers a handler to parse that reply. The handler is tested for each incoming OSC message (using its
isDefinedAt
method) and invoked and removed in case of a match, completing the returned future.If the handler does not match in the given timeout period, the future fails with a
Timeout
exception, and the handler is removed.- packet
the packet to send out
- timeout
the timeout duration
- handler
the handler to match against incoming messages
- returns
a future of the successfully completed handler or timeout exception
- See also
- abstract def addListener(pf: Listener[Update]): pf.type
- Definition Classes
- Model
- abstract def addr: Server.Address
- Definition Classes
- ServerLike
- abstract def allocAudioBus(numChannels: Int): Int
- abstract def allocBuffer(numChannels: Int): Int
- abstract def allocControlBus(numChannels: Int): Int
- abstract def bufManager: BufferManager
- abstract val clientConfig: Config
- abstract def condition: Condition
- abstract def config: Config
- Definition Classes
- ServerLike
- abstract def counts: StatusReply
The last reported server data, such as number of synths and groups, sample rate.
- abstract def defaultGroup: Group
- abstract def dispose(): Unit
Disconnects the client, and frees any resources on the client-side.
- abstract def dumpInOSC(mode: Dump = osc.Dump.Text, filter: (Packet) => Boolean = _ => true): Unit
- abstract def dumpOSC(mode: Dump = osc.Dump.Text, filter: (Packet) => Boolean = _ => true): Unit
- abstract def dumpOutOSC(mode: Dump = osc.Dump.Text, filter: (Packet) => Boolean = _ => true): Unit
- abstract def freeAudioBus(index: Int): Unit
- abstract def freeBuffer(index: Int): Unit
- abstract def freeControlBus(index: Int): Unit
- abstract def isConnected: Boolean
- abstract def isLocal: Boolean
- abstract def isOffline: Boolean
- abstract def isRunning: Boolean
- abstract def name: String
- Definition Classes
- ServerLike
- abstract def nextNodeId(): Int
- abstract def nextSyncId(): Int
- abstract def nodeManager: NodeManager
- abstract def queryCounts(): Unit
Shortcut to
this ! message.Status
.Shortcut to
this ! message.Status
. If the 'alive thread' is running, it will take care of querying the counts frequently. - abstract def quit(): Unit
Sends a
quitMsg
and then invokesdispose()
. - abstract def quitMsg: ServerQuit.type
- abstract def removeListener(pf: Listener[Update]): Unit
- Definition Classes
- Model
- abstract def rootNode: Group
- abstract def sampleRate: Double
Shortcut to
counts.sampleRate
. - abstract def startAliveThread(delay: Float = 0.25f, period: Float = 0.25f, deathBounces: Int = 25): Unit
Starts a repeatedly running status watcher that updates the
condition
andcounts
information. - abstract def stopAliveThread(): Unit
- abstract def syncMsg(): Sync
Allocates a new unique synchronization identifier, and returns the corresponding
/sync
message.
Concrete 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- 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
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Server → AnyRef → Any
- 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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated