| Code: |
------------
#cat auxsvc.cfg
AuxService
{
Port 2003
Script reg_aux
}
#cat reg_aux.src
use uo;
use os;
program Register(connection)
print("Started");
var ev;
print("Connection object:"+connection);
while(connection)
print("Start While:"+connection);
ev := os::wait_for_event(60);
print(ev);
endwhile
endprogram
|
| Code: |
telnet localhost 2003
Trying 127.0.0.1...
Connected to localhost
Escape character is '^]'.
Connection closed by foreign host.
|