Encoding library finished
This commit is contained in:
parent
83b863a9d8
commit
2dcd0f4fff
|
@ -1,3 +1,5 @@
|
|||
module tristanable.encoding;
|
||||
|
||||
public final class DataMessage
|
||||
{
|
||||
|
||||
|
@ -10,7 +12,7 @@ public final class DataMessage
|
|||
ulong receivedTag = *(cast(ulong*)bytes.ptr);
|
||||
|
||||
/* Fetch the `data` */
|
||||
byte[] receivedData = receivedMessage = bytes[8..bytes.length];
|
||||
byte[] receivedData = bytes[8..bytes.length];
|
||||
|
||||
return new DataMessage(receivedTag, receivedData);
|
||||
}
|
|
@ -3,6 +3,7 @@ module tristanable.manager;
|
|||
import tristanable.watcher : Watcher;
|
||||
import tristanable.request : Request;
|
||||
import tristanable.garbage : GarbageCollector;
|
||||
import tristanable.encoding : DataMessage;
|
||||
import std.socket : Socket;
|
||||
import core.sync.mutex : Mutex;
|
||||
import bmessage : bSendMessage = sendMessage;
|
||||
|
|
Loading…
Reference in New Issue