public Guid createServer(string name, Int64 owner) { IC_Server server = new IC_Server(this, name, owner); // bind socket behavior servers.Add(server.guid, server); // register protocol on socket this.server.AddWebSocketService <Network.Behaviors.Server>("/" + server.namehash, () => new Network.Behaviors.Server(server)); Console.WriteLine("[INFO] Server created " + server.namehash); return(server.guid); }
public Server(IC_Server server) { }