Beispiel #1
0
 public ShellPeer(TcpClient cl)
 {
     this.CLI = cl;
     JAdapter = new LightJsonTCPAdapter(cl);
     thread   = new Thread(PeerLoop);
     thread.Start();
 }
Beispiel #2
0
        public static void Init()
        {
            var EP = new IPEndPoint(IPAddress.Loopback, 13333);
            var CL = new TcpClient();

            CL.Connect(EP);
            adapter = new LightJsonTCPAdapter(CL);
        }