See VotingApp/capnqt/QSocketWrapper.hpp
This class seems to be working fine, but a full complement of unit tests is still needed. Tests should include basic functionality (that data is delivered intact) and also probe all more advanced functionality such as asynchronous usage (multiple pending reads), order of events (reading before data is available vs after), read sizes (kj allows a read of at least N bytes but up to M; make sure this works correctly), EOF handling, etc.
Don't forget to test writes as well, though writes are simpler.
See
VotingApp/capnqt/QSocketWrapper.hppThis class seems to be working fine, but a full complement of unit tests is still needed. Tests should include basic functionality (that data is delivered intact) and also probe all more advanced functionality such as asynchronous usage (multiple pending reads), order of events (reading before data is available vs after), read sizes (kj allows a read of at least N bytes but up to M; make sure this works correctly), EOF handling, etc.
Don't forget to test writes as well, though writes are simpler.