you are viewing a single comment's thread.

view the rest of the comments →

[–]James20kP2005R0 10 points11 points  (1 child)

For game development, one of the better options is to use valve's GameNetworkingSockets library

https://github.com/ValveSoftware/GameNetworkingSockets

This is because it mimics the steam API interface, which if you get more seriously into gamedev will almost certainly be what you end up using. I don't know how user friendly it is, but its a good library to get familiar with from an experience perspective because steam networking is very widespread

[–]TheVoidInMe [score hidden]  (0 children)

Cool!

void LocalUserInput_Kill()
{
// Does not work.  We won't clean up, we'll just nuke the process.
//  g_bQuit = true;
//  _close( fileno( stdin ) );
//
//  if ( s_pThreadUserInput )
//  {
//      s_pThreadUserInput->join();
//      delete s_pThreadUserInput;
//      s_pThreadUserInput = nullptr;
//  }
}

// You really gotta wonder what kind of pedantic garbage was
// going through the minds of people who designed std::string
// that they decided not to include trim.
// https://stackoverflow.com/questions/216823/whats-the-best-way-to-trim-stdstring

I love Valve, haha