Thanks very much, it worked but now when I get a connection I get an alert box saying 'The instruction referenced at 0xsomething could..... I'm sure you know the one.
This is the three lines used:
I dont have a destructor defined, could that be a problem? But anyhow it seems that it gets the error as soon as it tries to create the new class.
int Sockfd2 = accept(Sockfd, (struct sockaddr *) &clientAddress, &size);
Connection * NewRequest = new Connection(Sockfd2);
cout << "We got a new connection!";
Any ideas on why this could be happening? My understanding of pointers is not all that great.