Possible packet improvements?
#2
The packet is written to a buffer when it is "sent" by the cClientHandle / cProtocol classes. Then another thread is notified that outgoing data is ready, and that thread then takes care of sending as much data as possible to the client. See for example the cProtocol172::SendData() function, that is called to send each packet's raw data, it calls cClientHandle::SendData(), which queues the outgoing data in two buffers (a fast ringbuffer and a dynamically-allocated overflow buffer, then it notifies the cServer::cNotifyWriteThread that it should send the data for this client.
Reply
Thanks given by:


Messages In This Thread
Possible packet improvements? - by SamJBarney - 12-23-2013, 06:37 AM
RE: Possible packet improvements? - by xoft - 12-23-2013, 06:43 AM
RE: Possible packet improvements? - by SamJBarney - 12-23-2013, 06:47 AM
RE: Possible packet improvements? - by xoft - 12-23-2013, 06:49 AM
RE: Possible packet improvements? - by SamJBarney - 12-23-2013, 08:49 AM
RE: Possible packet improvements? - by xoft - 12-23-2013, 08:57 AM
RE: Possible packet improvements? - by SamJBarney - 12-23-2013, 09:07 AM



Users browsing this thread: 3 Guest(s)