Ejemplo n.º 1
0
        public static LiteNetLibConnectionExperimental CreateClient(string address, int port, int maxConnections, string version, bool enableNatPunch)
        {
            var client = new LiteNetLibConnectionExperimental();

            client.InitAsClient(address, port, maxConnections, version, enableNatPunch);
            return(client);
        }
Ejemplo n.º 2
0
        public static LiteNetLibConnectionExperimental CreateServer(int port, int maxConnections, string version, bool enableNatPunch)
        {
            var server = new LiteNetLibConnectionExperimental();

            server.InitAsServer(port, maxConnections, version, enableNatPunch);
            return(server);
        }