diff --git a/source/renaissance/connection/connection.d b/source/renaissance/connection/connection.d index 22495e2..00ec669 100644 --- a/source/renaissance/connection/connection.d +++ b/source/renaissance/connection/connection.d @@ -22,6 +22,7 @@ import std.conv : to; public enum LinkType { + UNSET, USER, SERVER } @@ -43,6 +44,12 @@ public class Connection : Thread private Manager tManager; private Queue incomingQueue; + /** + * Whether this is a user connection + * or a server link + */ + private LinkType linkType; + private this(Server associatedServer, Stream clientStream) { this.associatedServer = associatedServer; @@ -72,6 +79,11 @@ public class Connection : Thread this.tManager.setDefaultQueue(this.incomingQueue); } + public LinkType getLinkType() + { + return this.linkType; + } + private void worker() { // TODO: Start tristanable manager here