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

Author Topic: Suggesting correction on a tutorial page  (Read 4799 times)

0 Members and 1 Guest are viewing this topic.

Efreeto

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Suggesting correction on a tutorial page
« on: June 13, 2016, 07:53:34 pm »
First of all, thank you for SFML! I just found out about this awesome library today, and I am loving it so much. So whether you contribute to the source code, or forum, or donate to this library, or just keeping it alive, thank you so much!

I have a minor suggestion on http://www.sfml-dev.org/tutorials/2.3/network-socket.php today.
I really loved the outline on TCP vs UDP as I loved all other tutorials. It lists several differences, but it seems to me that the first one and the last one are the same.

Quote
The main difference is that TCP sockets are connection-based. You can't send or receive anything until you are connected to another TCP socket on the remote machine. Once connected, a TCP socket can only send and receive to/from the remote machine. This means that you'll need one TCP socket for each client in your application.
UDP is not connection-based, you can send and receive to/from anyone at any time with the same socket.

Quote
Oh, and one last thing: since UDP is not connection-based, it allows broadcasting messages to multiple recipients, or even to an entire network. The one-to-one communication of TCP sockets doesn't allow that.

BTW, all the tutorials go in depth to explain all things that aren't even central to SFML, so I really appreciate these. Thank you again!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: Suggesting correction on a tutorial page
« Reply #1 on: June 13, 2016, 08:19:40 pm »
While it may sound similar it has a different focus. The first point is about the fact that UDP is packet based. You can send a packet to anyone you want, you don't need to first establish a connection as with TCP.
The second point is about broadcasting packets to multiple recipients at once.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Efreeto

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Suggesting correction on a tutorial page
« Reply #2 on: June 13, 2016, 10:17:04 pm »
Ah I see. I just inferred the multiple recipient thing from the first one, so I thought the two were the same thing.
Thank you for replying to this exploiter! (and for everything else you are doing!)

 

anything