Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » i have run into a problem...
i have run into a problem... [message #213132] Mon, 14 August 2006 02:47 Go to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
General (3 Stars)
i have run into a problem that i cannot solve:

index.php?t=getfile&id=1517&private=0

if i ignore the error i can telnet port 3002 and send data over fine the fds will print it. so why do i get it?

#include "Socket.h"
#include <string>
#include <windows.h>
using namespace std;

DWORD WINAPI parse(LPVOID lpParam)
{

	SocketServer in(3002,5);
	while (1) 
	{
		Socket* s=in.Accept();
		while (1) 
		{
			std::string r = s->ReceiveLine();
			if (r.empty()) 
				break;
			Console_Output(r.c_str());
		}
	}
	return 0;
}


if i comment this function body out(exept "return 0;") it will not error.

here is the SocketServer code: http://www.adp-gmbh.ch/win/misc/sockets.html
  • Attachment: problem.JPG
    (Size: 128.98KB, Downloaded 279 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: just a quick question...
Next Topic: vid card
Goto Forum:
  


Current Time: Sun Nov 10 01:08:39 MST 2024

Total time taken to generate the page: 0.01422 seconds