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

Author Topic: 2 bugs  (Read 24464 times)

0 Members and 3 Guests are viewing this topic.

imgty

  • Newbie
  • *
  • Posts: 1
    • View Profile
2 bugs
« on: February 16, 2008, 04:39:09 pm »
Hi,

1.) In SocketTCP::Receive(Packet& PacketToReceive) you assume that you receive the packet size in one call to recv().

2.) In Selector<Type>::GetSocketsReady(...) you only check the sockets for readability and not for writability.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
2 bugs
« Reply #1 on: February 17, 2008, 11:08:22 am »
Hi

1) You're right. Even if 4 bytes will most likely always be received in one time, I should use a loop to make sure every byte is received.

2) Actually, only the readability status is supported in selectors. But I think the writable state could be added easily.

Thanks for your feedback :)
Laurent Gomila - SFML developer