Tags: kelvinkuo/pitaya
Tags
Refactor player connection (topfreegames#125) * Refactor player connection Those commits decouple the logic of reading messages from the service/handler and delegates the responsibility for the acceptor itself by implementing a GetNextMessage method. TCP Acceptor now parses whole messages one by one from the stream, this way we ensure not to read partial messages anymore.
Refactor player connection Those commits decouple the logic of reading messages from the service/handler and delegates the responsibility for the acceptor itself by implementing a GetNextMessage method. TCP Acceptor now parses whole messages one by one from the stream, this way we ensure not to read partial messages anymore.
PreviousNext