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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 22 23 24 25 26 ... 365 Next »

How does the traversal server work with Dolphin?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
How does the traversal server work with Dolphin?
04-23-2020, 12:42 AM
#1
ArturFluor
Unregistered
 
Hi everyone,

I tried searching the forums and google to learn more about the traversal server solution that dolphin uses for netplay. Me and a friend were talking about how good it works and that it is p2p but while still kinda going through a server.

So, I was looking at dolphin's code on github and just browsing google to learn more about traversal connection but couldn't really find something particularly clear about it. Even on github I couldn't really pinpoint the specific folder where the code for netplay is.

Couple of direct questions:

1- Is the Traversal Server connection still p2p? I believe it works at as a middle man up to the point where players are in the room, then it just have both players connected to each other without having to relay information to a main server like in online games.

2- Is the solution's code open source? Where on github is the folder that has the netplay code?

3- I have also heard that dolphin has a server running that acts as the Traversal. How big and/or fast must this server be to comport all the netplay games going on every day? Also, do you guys use AWS or what other hosting solution?

Thank you so much for the explanations, I really appreciate it =)
Reply
04-23-2020, 01:01 AM
#2
JosJuice Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,624
Threads: 7
Joined: Oct 2014
I believe this is what Dolphin uses: https://en.wikipedia.org/wiki/STUN

(04-23-2020, 12:42 AM)ArturFluor Wrote: 1- Is the Traversal Server connection still p2p? I believe it works at as a middle man up to the point where players are in the room, then it just have both players connected to each other without having to relay information to a main server like in online games.

Yes, that's correct.

(04-23-2020, 12:42 AM)ArturFluor Wrote: 2- Is the solution's code open source? Where on github is the folder that has the netplay code?

Some of Dolphin's netplay code can be found here (and some of it in other files): https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/Core/NetPlayClient.cpp https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/Core/NetPlayServer.cpp

I don't know about the code for the traversal server itself.

(04-23-2020, 12:42 AM)ArturFluor Wrote: 3- I have also heard that dolphin has a server running that acts as the Traversal. How big and/or fast must this server be to comport all the netplay games going on every day? Also, do you guys use AWS or what other hosting solution?

I don't really know the details, but I can't imagine the load on it would be that high. It doesn't have to do much for each netplay session.
Find
Reply
04-23-2020, 05:45 AM
#3
Helios Offline
Stellaaaaaaa
**********
Developers (Some Administrators and Super Moderators)
Posts: 4,395
Threads: 15
Joined: May 2012
The STUN server is tiny and load should be trivial compared to the rest of the processes on the machine it runs on (If I remember the build infra layout correctly).
Find
Reply
04-23-2020, 10:36 PM
#4
ArturFluor
Unregistered
 
Thank you for the info guys. I find dolphin netplay an amazing solution and was looking to apply something similar to a project I'm working with a few friends (not an emulator tho).

Thanks =)
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode