Server.pm Show Source

The Server package provides the basic server-side functionality for client/server communication during parallel execution. It is inherited by ReXServer.pm and JobServer.pm.

new([arguments])
creates a new Server object. If arguments are given they are passed on to the parent class SimData.pm.
(port,id,pid) = run(baseport[,presetid])
starts the server as a separate process and returns the assigned TCP/IP port, internal ID, and process ID. It is expected that the caller uses the process ID to wait for the server to finish. An address given as baseport argument can be used to set the beginning of the TCP/IP port range used for the server.
serverPort
server TCP/IP port address
 
serverID
server ID
 
serverSocket
server socket handle
 
connected
number of clients currently connected
 
client -> { id } -> { socket host }
information about connected clients
 
html[] -> { client request alive }
HTML clients expecting server push
GenUtil.pm  SimData.pm  MONSSTER.pm  ReXServer.pm  AmberReXServer.pm
Michael Feig, Brooks group, TSRI