Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Network
»
2 bugs
Print
Pages: [
1
]
Author
Topic: 2 bugs (Read 24898 times)
0 Members and 1 Guest are viewing this topic.
imgty
Newbie
Posts: 1
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.
Logged
Laurent
Administrator
Hero Member
Posts: 32498
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
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Network
»
2 bugs