Scrapped old code

This commit is contained in:
Tristan B. Velloza Kildaire 2021-09-15 15:49:21 +02:00
parent aeec429991
commit c9fbd28914
1 changed files with 3 additions and 33 deletions

View File

@ -1,37 +1,7 @@
module libdnet.api.client;
import libdnet.protobuf.dnet;
import std.socket;
import tristanable.manager;
import tristanable.queue;
/**
* Client
*
* Represents a connection to the server. This
* contains quite a number of things such as
* basic command support, notifications support
* (asynchronous) allowing one to attached handlers
* to each different asynchronous message types.
*
* Along with the basic command support is the ability
* to queue tasks up and have handlers attached to them
* for when they complete (server-side asycnrhonous support
* is mirrored into the library)
*/
public final class Client
{
public Channel createChannel(string name)
{
Channel newChannel;
/* TODO: Check if the channel exists firstly */
ChannelMessage d = new ChannelMessage();
d.name = name;
d.type = ChannelMessage.MessageType.CREATE;
return newChannel;
}
}
public final class Channel
{
}