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

Author Topic: Packet Send - Fragmentation?  (Read 32048 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Packet Send - Fragmentation?
« Reply #15 on: December 19, 2008, 05:17:04 pm »
Thanks for your help, I'll try this as soon as possible :)
Laurent Gomila - SFML developer

zac

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Packet Send - Fragmentation?
« Reply #16 on: December 19, 2008, 08:44:28 pm »
Maybe there is some other bug in this code, that is not in my real server code... i don't know, but it seems to fail more often than the real server...

There is something else, preventing compilation of the Network lib (easy to fix, but you probably should fix it):
The include <cstring> (on my platform (newest g++, ubuntu linux 64-bit)) is missing - you may not need it in windows with VCC or Mingw, but with me, memcpy/memset et cetera are not defined without it. So I had to add #include <cstring> to IPAddress.cpp, Packet.cpp and so on...

zac

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Packet Send - Fragmentation?
« Reply #17 on: December 19, 2008, 09:23:02 pm »
Hey, I just tested my server/client thingy via LAN - and it works, PERFECTLY.
Now, this might be kinda strange, but is it possible that SFML-TCP-Sockets have problems with Loopback?? Maybe because there is no measurable delay between sending and arriving?

zac

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Packet Send - Fragmentation?
« Reply #18 on: December 19, 2008, 10:34:53 pm »
Some packets are not received, though they should be... they are sent properly and via LAN, it works exactly as supposed...

 

anything