mirror of https://github.com/deavminet/libdnet.git
Implemented `status` command
This commit is contained in:
parent
a10f546218
commit
b8f16ebba2
|
@ -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];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue