Class SocketServerHandler
In: daimoku-server/matrix-extensions.rb
Parent: Object

Imported into the Simulation

The handler class for the SocketServer class. The Player should implement on_input to set up any sort of server-side protocol that the Player would be interested in implementing.

Methods

new   on_input  

Public Class methods

Initialize with the Player‘s IO object, for example:

ssh = SocketServerHandler.new IOjoe3845T23N

Public Instance methods

Called by SocketServer when input is received on the socket The Player should override this method to implement any sort of server-side protocol that the Player may be interested in.

 ssh = SocketServerHandler.new IOjoe3845T23N
 ss = SocketServer.new ssh

return: String

[Validate]