Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public Server(IC_Server server)
 {
 }