Game Development Community

Error reading from socket: No error...?

by Svengali · in Torque 3D Professional · 06/07/2011 (11:44 am) · 0 replies

Error reading from socket: No error, what is T3D telling me here? Is it timing out?

here's the code I'm using from a great little resource, i cant remember at the moment.
although HTTPObject is way to slow to use for anything to serious, i'd like to understand whats happening.
Thanks in advance!

function example_Login()
{
	$WebService = new HTTPObject();
	$WebService.init_http($WebServiceURL,$WebServicePath,$WebServiceApplication);
	$WebService.XMLLogin("User1","pass1");
}
function HTTPObject::XMLLogin(%this,%login,%pass)
{
	%this.getXML("login&u="@%login@"&p="@%pass,"XMLLogin");
}

function HTTPObject::XMLLoginCallBack(%this)
{
	%loginresult = %this.getXMLNode("loginresult");
	%LoginOK = (%loginresult $= "SUCCESS");
	%Awaiting = (%loginresult $= "AWAITING");
	if (%LoginOK)
	{
		%this.logged=true;
		%this.userID = %this.getXMLNode("userID");
		// Account GUI
		echo("Account GUI:"@%this.userID);
	} else
	if (%Awaiting)
	{
		%this.logged=false;
		%this.userID = 0;
		// Launch Awainting validation GUI
		echo("Awaiting account GUI - Check your mail");
	} else
	{
		%this.logged=false;
		%this.userID = 0;
		// Launch Login failure GUI
		echo("Login Failure");
	}
}

About the author

Creator of SvengaliGames, and developing the once up coming title NightLife: The MMORPG Of Dark Horror. Now named ATROX NOCTIS: Daemons Cradle- www.svengaligames.com