Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Network SFML large projects  (Read 3343 times)

0 Members and 1 Guest are viewing this topic.

kol

  • Newbie
  • *
  • Posts: 31
    • View Profile
Network SFML large projects
« on: February 03, 2015, 01:56:18 pm »
I can use the "API Network" of SFML for large projects? I do not know much about networking, if anyone has any tutorial on this subject, I will be grateful! :)
Example: Dota 2, League of Legends, Ragnarok.

What did I consider in a server with multiple players?

Sorry my english.

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Network SFML large projects
« Reply #1 on: February 03, 2015, 08:42:24 pm »
You question is quite ambiguous. Ragnarok is an MMO, and whilte Dota2 and LoL arent, they are still network-heavy regardless.

If you dont know much about networking, then you need not worry about this sort of network usage. But in short, probably not. The network module of SFML is sufficient for an intermediate level of networking. When you get into MMOs and network-heavy applications, you should look at engineering your own networking libraries.

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Network SFML large projects
« Reply #2 on: February 04, 2015, 01:16:06 am »
Not to mention the known bugs in the SFML network module :-(

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Network SFML large projects
« Reply #3 on: February 04, 2015, 08:31:39 am »
SFML has bugs?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10901
    • View Profile
    • development blog
    • Email
AW: Network SFML large projects
« Reply #4 on: February 04, 2015, 09:16:13 am »
In the end all you need are sockets and SFML provides them. The hard part is implementing your own protocols etc.
Then again other libraries such as asio can make things a bit easier.

As for the mentioned issue: https://github.com/SFML/SFML/issues/749
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kol

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Network SFML large projects
« Reply #5 on: February 04, 2015, 11:12:28 am »
Could give me some tutorial on how to create my own protocols?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10901
    • View Profile
    • development blog
    • Email
Re: Network SFML large projects
« Reply #6 on: February 04, 2015, 11:23:11 am »
Learn about networks in general first. I mean you probably don't even know when the usage of UPD or TCP is appropriate. Without such very basic knowledge you shouldn't try to go further. ;)

There's plenty of resources about networking in your local book library or online.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kol

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Network SFML large projects
« Reply #7 on: February 04, 2015, 11:37:54 am »
About using the UPD and TCP I know. And speaking of the same subject, how can I make a connection with them? In order to send UDP and TCP for the same player in SFML?

And I will start reading about network and protocols. Very thanks for all. :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10901
    • View Profile
    • development blog
    • Email
Re: Network SFML large projects
« Reply #8 on: February 04, 2015, 11:55:20 am »
The official tutorials explain how to use SFML's network module.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kol

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Network SFML large projects
« Reply #9 on: February 04, 2015, 11:57:11 am »
Thanks

 

anything