TcpObject: Socket not ready to write error
by Davidovich · in Torque Game Engine · 06/06/2006 (1:15 pm) · 1 replies
Hi everyone,
I'm experimenting with the tcpObjects at the moment, getting data off websites, DBs, RSS feeds, etc, however I'm having two consistent problems. The first is that the forum keeps only posting a small portion of my message, hence why this post is split up. The second is the real issue:
I based my functions around those posted by Harold "LabRat" Brown recently here: http://www.garagegames.com/blogs/32/10202
My problem is that when I actually send the data I get A "socket not ready to write!" error and the function terminates.
I have managed to get around this by scheduling the send, ie:
%this.schedule(200, "send", %httpCmd);
I'm experimenting with the tcpObjects at the moment, getting data off websites, DBs, RSS feeds, etc, however I'm having two consistent problems. The first is that the forum keeps only posting a small portion of my message, hence why this post is split up. The second is the real issue:
I based my functions around those posted by Harold "LabRat" Brown recently here: http://www.garagegames.com/blogs/32/10202
My problem is that when I actually send the data I get A "socket not ready to write!" error and the function terminates.
I have managed to get around this by scheduling the send, ie:
%this.schedule(200, "send", %httpCmd);
Torque Owner Davidovich
Anyways, neither the waiting, nor the interupted data stream is particularly helpful to me, so any help anyone can offer would be very welcome.
Thanks in advance.
-David