forked from tmoonlight/NSmartProxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
27 lines (24 loc) · 784 Bytes
/
Program.cs
File metadata and controls
27 lines (24 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
using System.Text;
using NSmartProxy.Data;
namespace NSmartProxy
{
class Program
{
static void Main(string[] args)
{
//ClientModel cm = new ClientModel();
//cm.AppList = new List<App> { new App { AppId = 1, Port = 8091 }, new App { AppId = 2, Port = 8092 }, new App { AppId = 3, Port = 8093 } };
//cm.ClientId = 1000;
//byte[] d = cm.ToBytes();
//ClientModel cm2 = ClientModel.GetFromBytes(d);
ClientIdAppId cia = new ClientIdAppId();
cia.AppId = 123;
cia.ClientId = 2323;
var bt = cia.ToBytes();
var cia2 = ClientIdAppId.GetFromBytes(bt);
Console.Read();
}
}
}