Game Development Community

Tcpobject and onLine function problem

by Bisher Tarakji · in Technical Issues · 08/31/2006 (1:27 pm) · 1 replies

Hello
I am having a very strange problem with a simple tcpobject code

function log()
{
%tcpobj = new TCPObject(AuthTCP);
%tcpobj.connect("www.yahoo.com:80");
echo("connected");
%tcpobj.send("GET / \r\n");
}

function AuthTCP::onLine(%this, %line)
{
echo(%line);
}

function AuthTCP::onDisconnect(%this)
{
echo("disconnection occured.");
}

I get the "connected" echo message, and when i disconnect, i get the "disconnection occured" message.
But the onLine function is never called.
I tried to telnet to port 80 on the site, and i got many lines, so I don't understand what's wrong with the onLine function and why it is not executing

thanks

#1
08/31/2006 (1:41 pm)
Your question was posted earlier in the correct forum, and was actually answered there.

Please do not cross-post, and especially not in an incorrect forum location.