Implemented `status` command

This commit is contained in:
Tristan B. Kildaire 2020-10-18 21:42:54 +02:00
parent a10f546218
commit b8f16ebba2
1 changed files with 11 additions and 0 deletions

View File

@ -139,7 +139,18 @@ public final class DClient
*/
public void setStatus(string status)
{
/* The protocol data to send */
byte[] data = [13];
data ~= status;
/* Send the protocol data */
DataMessage protocolData = new DataMessage(reqRepQueue.getTag(), data);
bSendMessage(socket, protocolData.encode());
/* Receive the server's response */
byte[] resp = reqRepQueue.dequeue().getData();
// return cast(bool)resp[0];
}
/**