From 7e2a8dbd051b94115672cf22cc66ef09ba8376ca Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Sat, 17 Mar 2018 15:30:15 +0100 Subject: .NET Core is cool! --- .../PasswordCrackerServer/clientConnection.cs | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 PasswordCrackerDistributed/PasswordCrackerServer/clientConnection.cs (limited to 'PasswordCrackerDistributed/PasswordCrackerServer/clientConnection.cs') diff --git a/PasswordCrackerDistributed/PasswordCrackerServer/clientConnection.cs b/PasswordCrackerDistributed/PasswordCrackerServer/clientConnection.cs deleted file mode 100644 index c99d0be..0000000 --- a/PasswordCrackerDistributed/PasswordCrackerServer/clientConnection.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System.IO; -using System.Net.Sockets; -using System.Threading.Tasks; - -namespace PasswordCrackerServer -{ - class clientConnection - { - public TcpClient ConnectionSocket { get; set; } - public string Chunk { get; set; } - public string Pass { get; set; } - - - public clientConnection(TcpClient connectionSocket, string chunk, string pass) - { - ConnectionSocket = connectionSocket; - Chunk = chunk; - Pass = pass; - } - - public async Task SendToClient() - { - Stream ns = ConnectionSocket.GetStream(); - StreamReader sr = new StreamReader(ns); - StreamWriter sw = new StreamWriter(ns) - { - AutoFlush = true - }; - - sw.WriteLine($"DPCP 1.0\n{Pass}\n{Chunk}\n\n"); - //sw.WriteLine(pass); - //sw.WriteLine(chunk); - - return sr.ReadLine(); - } - } -} -- cgit v1.2.3