class SCSCPServer extends AnyRef
A (single threaded) implementation of the SCSCP protocol, version 1.3
This is not technically conform to the standard, as we do not implement all the method outlined in the specification.
- Source
- SCSCPServer.scala
- Alphabetic
- By Inheritance
- SCSCPServer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
SCSCPServer(service_name: String, service_version: String, service_identifier: String, socket: ServerSocket, encoding: String = "UTF-8")
- service_name
The name of the service offered offered by this server
- service_version
The version of the service offered by this server
- service_identifier
The identifier of the service offered by this server.
- socket
Socket to use for incoming connections
- encoding
Encoding to use for incoming connections
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
clients: List[SCSCPServerClient]
a list of clients connected to this server
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
event(event: SCSCPServerEvent): Unit
handles a log event
handles a log event
- Attributes
- protected[Server]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getHandler(symbol: OMSymbol): SCSCPHandler
Gets the handler for a given symbol
-
def
getHandlerNames: List[OMSymbol]
gets the names of the registered handler
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hostname: String
the hostname this server is bound to
-
def
info(message: String): Unit
Sends an info message to all clients attached to this server
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
port: Int
the port this server is bound to
-
def
process(): Unit
Represents one iteration of processing.
Represents one iteration of processing. Never blocks.
-
def
processForever(): Unit
Processes forever until
-
def
quit(reason: Option[String]): Unit
Quits all clients attached to this server
-
def
register(symbol: OMSymbol, handler: SCSCPHandler): Unit
Registers a handler for a specific function call
Registers a handler for a specific function call
- symbol
Symbol to handle
- handler
Handler to register
- val service_identifier: String
- val service_name: String
- val service_version: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unregister(symbol: OMSymbol): Unit
Unregisters a handler for a symbol
Unregisters a handler for a symbol
- symbol
Symbol to unregister
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()