• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 … 10 11 12 13 14 … 117 Next »

Where is the netplay thread?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Where is the netplay thread?
11-26-2019, 06:33 AM
#1
FluentCoding
Unregistered
 
Hey readers!


Im currently looking over the netplay code of dolphin (in github) and hope someone of you might help.

My question is if someone of you knows where the netplay thread runs cuz i want to know from where this method gets called: (click here for direct link)

Code:
// called from ---NETPLAY--- thread
void NetPlayClient::OnConnectFailed(u8 reason)
{
 m_connecting = false;
 m_connection_state = ConnectionState::Failure;
 switch (reason)
 {
 case TraversalConnectFailedClientDidntRespond:
   PanicAlertT("Traversal server timed out connecting to the host");
   break;
 case TraversalConnectFailedClientFailure:
   PanicAlertT("Server rejected traversal attempt");
   break;
 case TraversalConnectFailedNoSuchClient:
   PanicAlertT("Invalid host");
   break;
 default:
   PanicAlertT("Unknown error %x", reason);
   break;
 }
}

I would appreciate if you can help me.

Cya,
FluentCoding
Reply
11-26-2019, 06:36 AM
#2
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 9,025
Threads: 7
Joined: Oct 2014
The netplay client thread is here: https://github.com/dolphin-emu/dolphin/b...t.cpp#L150

And the netplay server thread is here: https://github.com/dolphin-emu/dolphin/b...r.cpp#L145

But if you just want to know from where that function gets called, it's from this line of code: https://github.com/dolphin-emu/dolphin/b...t.cpp#L193
Find
Reply
11-26-2019, 06:39 AM
#3
FluentCoding
Unregistered
 
Thank you so much, @JosJuice Big Grin

My goal that i want to achieve is just implementing a method in java for checking the validity of a netplay code by sending a request to your traversal server. I would appreciate it if you or anyone else could help me a bit more cuz i dont want to sit the whole night over your project tbh Wink
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma