Add some notes + use stringstream to build packet
This commit is contained in:
parent
7de1bf3746
commit
874bfebaf9
2 changed files with 26 additions and 29 deletions
|
@ -1035,12 +1035,6 @@ void HandlePacket() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (HasHioRequest()) {
|
||||
const auto reply = BuildHioRequestPacket();
|
||||
SendReply(reply.data());
|
||||
return;
|
||||
}
|
||||
|
||||
if (!IsDataAvailable()) {
|
||||
return;
|
||||
}
|
||||
|
@ -1059,8 +1053,12 @@ void HandlePacket() {
|
|||
case 'c':
|
||||
case 'C':
|
||||
case 's':
|
||||
//
|
||||
;
|
||||
if (HasHioRequest()) {
|
||||
// Really, this request needs to get sent _after_ the step or continue
|
||||
// began, but not sure how to schedule that...
|
||||
const auto request_packet = BuildHioRequestPacket();
|
||||
SendReply(request_packet.data());
|
||||
}
|
||||
}
|
||||
|
||||
switch (command_buffer[0]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue