I would look at Truce's webserver for reference.
It seems a few things are improperly defined in my script. I made some adjustments which I'll go test now. I'll also go test the tcpclient cause that might actually be working, and it was just my server that was messed up
Nope.
package LUGSTCPOBJECT
{
function TCPObject::onLine(%this, %line)
{
if(%this.class $= "lugsTCPServ")
{
echo(%this);
echo(%line);
%mode = getword(%line, 0);
echo(%mode);
%msg = strReplace(%line, getword(%line, 0), "");
echo(%msg);
switch$(%mode)
{
case "CHAT:":
echo("SRVR:CHAT:" SPC %msg);
case "WARNMSG":
warn("SRVR:WARN:" SPC %msg);
case "TALKMSG":
commandToServer('messageSent', %msg);
default:
echo("SRVR:Message received, unknown mode:" SPC %line);
}
return;
}
parent::onLine(%this, %line);
}
};
activatepackage(LUGSTCPOBJECT);
tried that, tried without the %this.class part, tried without package
At least now it isn't giving me a RTB error.