Game Development Community

Net::recv got bad connected receive event error

by Danni · in Torque Game Engine Advanced · 08/12/2007 (1:30 pm) · 2 replies

I derived a few classes using TelnetConsole code as a base. I found an interesting condition. If you receive data at a fast rate (i.e. multiple sends from a server in a row) you get an "got bad connected receive event" in the console and the send is gobbled.

Adding a while loop around the receiving end seams to fix this.

while (numBytes != -1) {
	Net::Error err = Net::recv(mSocket, (unsigned char*)recvBuf, sizeof(recvBuf), &numBytes);

.....
}

#1
08/12/2007 (7:01 pm)
Scratch that, running on my laptop and i still get this.
#2
08/27/2007 (8:12 pm)
Any Ideas? Anyone?