Hi guys!
I need to have in "par" my game with the Listen socket on my client.
Now, i'll try to do somwhat like this but doesn't work!
Someone can help me?
void ThreadFun(void *UserData)
{
Network->work();
}
int main()
{
Game* game= new Game();
sf::Thread Threads(&ThreadFun);
Game->work();
return EXIT_SUCCESS;
}
Info -> the thread starts much after commencing the game
( Before i need to send/recv singles datas in another methods. )
SFML 2.0 , vc++2010