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

Author Topic: Question about packet size limits  (Read 2159 times)

0 Members and 1 Guest are viewing this topic.

kattle87

  • Newbie
  • *
  • Posts: 6
    • View Profile
Question about packet size limits
« on: November 24, 2011, 02:24:12 am »
Is there any limit on the packet size? I am asking since I might need to move around "huge" amounts of data over a LAN (up to a max of 100 MBs on rare events), and SFML network (expecially "Packets") features are really nice compared to raw TCP, expecially while I'm developing my application (no optimizations needed yet!)
Should I expect any issue? Should I break down my "huge packet" in smaller fragments (something like 1MB max size)?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Question about packet size limits
« Reply #1 on: November 24, 2011, 07:39:52 am »
On TCP the limit is 2^32 bytes (so you can consider there's no limit).
On UDP the limit is UdpSocket::MaxDatagramSize bytes (SFML 2).
Laurent Gomila - SFML developer