Changeset View
Changeset View
Standalone View
Standalone View
support/aphlict/server/lib/AphlictFlashPolicyServer.js
| Show All 11 Lines | |||||
| JX.install('AphlictFlashPolicyServer', { | JX.install('AphlictFlashPolicyServer', { | ||||
| members: { | members: { | ||||
| _server: null, | _server: null, | ||||
| _port: 843, | _port: 843, | ||||
| _accessPort: null, | _accessPort: null, | ||||
| _debug: null, | _debug: null, | ||||
| setDebugLog : function(log) { | setDebugLog: function(log) { | ||||
| this._debug = log; | this._debug = log; | ||||
| return this; | return this; | ||||
| }, | }, | ||||
| setAccessPort : function(port) { | setAccessPort: function(port) { | ||||
| this._accessPort = port; | this._accessPort = port; | ||||
| return this; | return this; | ||||
| }, | }, | ||||
| start: function() { | start: function() { | ||||
| this._server = net.createServer(JX.bind(this, this._didConnect)); | this._server = net.createServer(JX.bind(this, this._didConnect)); | ||||
| this._server.listen(this._port); | this._server.listen(this._port); | ||||
| return this; | return this; | ||||
| Show All 35 Lines | |||||