Skip to content

Commit ac01721

Browse files
committed
System Touch
1 parent 0f846a3 commit ac01721

6 files changed

Lines changed: 593 additions & 0 deletions

File tree

configuration/nwe-config.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,21 @@
151151
</port-authority>
152152
</server>
153153

154+
<server id="COMMUNICATOR">
155+
<enabled>true</enabled>
156+
<name>Communicator</name>
157+
<thread>Communicator</thread>
158+
<host>localhost</host>
159+
<port>49199</port>
160+
<description>
161+
Persistent 1-hour telnet chat server. Supports direct messaging,
162+
broadcast, scheduled delivery (per recipient local timezone), and
163+
chat history. MessagePoller daemon polls MySQL every 60 seconds
164+
for due scheduled messages and delivers them to live sessions.
165+
Set enabled=false to disable without recompiling.
166+
</description>
167+
</server>
168+
154169
<!-- ═══════════════════════════════════════════════════════════════════
155170
HEURISTIC CLASSIFIER
156171
════════════════════════════════════════════════════════════════════ -->

source/Main.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ public class Main
5959

6060
protected static final String MODULE_LOADER_DAEMON_HOST = "localhost";
6161

62+
protected static final Integer COMMUNICATOR_PORT = communicator.Communicator.PORT;
63+
64+
protected static final String COMMUNICATOR_HOST = "localhost";
65+
6266
public static void main(String...args)
6367
{
6468
Main main = new Main();
@@ -128,6 +132,9 @@ public Main()
128132
if (configuration.NweConfig.isEnabled("MODULE_LOADER_DAEMON"))
129133
NITRO.BRIDGE.MODULE_LOADER_DAEMON = new loader.ModuleLoaderDaemon(MODULE_LOADER_DAEMON_HOST);
130134

135+
if (configuration.NweConfig.isEnabled("COMMUNICATOR"))
136+
NITRO.BRIDGE.COMMUNICATOR = new communicator.Communicator(COMMUNICATOR_HOST);
137+
131138
NITRO.BRIDGE.MYSQL_COMPONENT = new NitroWebExpress.Aspect.MySQLComponent();
132139

133140
NITRO.BRIDGE.MYSQL_COMPONENT.print(this);

0 commit comments

Comments
 (0)