Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

NetworkMessage Rename and NetworkStream optimization #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
- Rename NetworkMessage back to Packet.
- Replace NetworkStream's growing pattern with a memory pool of default-
sized messages.

Original issue reported on code.google.com by vitor...@gmail.com on 5 Jan 2009 at 11:46

GoogleCodeExporter commented 9 years ago
Could you please give some reasons for these changes?

NetworkMessage is so named because it is at a lower level than the packets. In 
r527,
I factored out the common parts of Incoming and OutgoingPacket into a base 
Packet class.

How exactly would you propose implementing a "memory pool of default sized 
messages"
for the MessageStream class?

Original comment by ian320 on 5 Jan 2009 at 3:18

GoogleCodeExporter commented 9 years ago

Original comment by ian320 on 26 Feb 2009 at 2:49

GoogleCodeExporter commented 9 years ago
Fixed with brunos changes, integrated in r590.

Original comment by ian320 on 13 Mar 2009 at 9:14