Ejemplo n.º 1
0
        private static void Server_Accept(object sender, NConnectivity.EventArgs.SocketArgs e)
        {
            Console.WriteLine("Client Connected!");
            byte[] x = Encoding.ASCII.GetBytes("Testing!\n");

            System.Threading.Thread.Sleep(1000);

            server.BeginSend(e.Connection, x);
            server.BeginSend(e.Connection, x);
            server.BeginSend(e.Connection, x);
        }