Advertisement
vivienneanthony

no compile error so far

Jul 30th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.84 KB | None | 0 0
  1. void GameEconomicServer::NewConnection(StringHash eventType, Urho3D::VariantMap& eventData)
  2. {
  3.  
  4.     /// Get Connection
  5.     Urho3D::Connection * newConnection = (Urho3D::Connection *) eventData[ClientConnected::P_CONNECTION].GetPtr();
  6.  
  7.     /// Output to screen
  8.     cout << "New connection established {Clent}" << newConnection->ToString().CString() <<endl;
  9.  
  10.     /// Get currenttime
  11.     Urho3D::Time systemtime(context_);
  12.     unsigned int currenttime = systemtime.GetSystemTime();
  13.  
  14.     /// Get eventmap and time
  15.     Urho3D::VariantMap NetworkClientIdentity(GetEventDataMap());
  16.  
  17.     NetworkClientIdentity[NetworkClientIdentity::NETWORK_CLIENTYPE]=Unauthenticated;
  18.     NetworkClientIdentity[NetworkClientIdentity::NETWORK_CLIENTARRIVAL]= currenttime;
  19.  
  20.     /// Set Identity
  21.     newConnection->SetIdentity(NetworkClientIdentity);
  22.  
  23.     return;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement