Ejemplo n.º 1
0
        public void StartServicing(
            AddressType Address,
            Action <SyncOprations <AddressType> > Service)
        {
            new Thread(() =>
            {
                ServerSocket.BeginService(Address);
                while (true)
                {
                    var Client = ServerSocket.WaitForAccept();
                    new Thread(() =>
                    {
                        Service(new SyncOprations <AddressType>(Client, true));
#if DEBUG
                        Client.WhyDisconnect = "end";
#endif
                        Client.Disconncet().Wait();
                    }).Start();
                }
            }).Start();
        }