Server
Description
Extremely simple %Server class for communication with the client debugger. This class is purposefully simple as it may be implemented in a number of different scenarios/languages.
API overview
Constructor
Server
()
Functions
Public functions
| handleCommand ( line: String ): Void |
Handles a specific command either sent from the client or invoked by the Server instance owning program |
| listen ( host: String = * , port: Number = 8171 ): Server |
static Creates an instance of Server that is configured to accept client connections against the specified host/port |
| receiveFromClient (): String |
Gets the latest message from the client |
| sendToClient ( msg: String ): Void |
Sends a message to the connected debugging client |
| shutdown (): Void |
Shutdown an instance of the debugger server, closing ports |
Constructor
Server ()
Functions
getFullTypeName
(): String
Inherited from Object
native
Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.
Returns
| String | fully qualified type name of the Object. |
getType
(): Type
Inherited from Object
native
Gets the Type that describes the Object.
Returns
| Type | The Type that describes the object. |
getTypeName
(): String
Inherited from Object
native
Gets the type name of the Object.
Returns
| String | type name of the Object. |
handleCommand ( line: String ): Void
Handles a specific command either sent from the client or invoked by the Server instance owning program.
Parameters
| line: String | The command to handle/execute. |
listen ( host: String = * , port: Number = 8171 ): Server
static
Creates an instance of Server that is configured to accept client connections against the specified host/port.
Parameters
| host: String = * | The host to bind the debugging Socket to. Defaults to "*" |
| port: Number = 8171 | The port to binf the debugging Socket to. Defaults to 8171 |
Returns
| Server | The configured server instance. |
receiveFromClient (): String
Gets the latest message from the client
Returns
| String | Message from the client |