Exemplo n.º 1
0
		//--------------------------------------------------------------------------------
		void Session::Start()
		{
			try{
				tcp::resolver::query query("skyrim-online.com", "8558");
//tcp::resolver::query query("127.0.0.1", "8558");
				handle_resolve(resolver_->resolve(query));
			}
			catch(std::exception& e)
			{
			}
		}
Exemplo n.º 2
0
static int status_callback(long param, void *ptr)
{
  const quvi_word status = quvi_loword(param);
  const quvi_word type   = quvi_hiword(param);

  switch (status)
    {
    case QUVISTATUS_FETCH :
      handle_fetch(type,ptr);
      break;
    case QUVISTATUS_VERIFY:
      handle_verify(type);
      break;
    case QUVISTATUS_RESOLVE:
      handle_resolve(type);
      break;
    }

  cc::log << std::flush;

  return QUVI_OK;
}