private bool registrationProcess(Socket client, ConfigView conf) { client.ReceiveTimeout = 1000; RegistrationData rd = new RegistrationData(conf.Name, conf.Login, conf.Pass, TerminalGuid, ClientType.terminal); DataCover128kb dc = new DataCover128kb(rd.Pack(), DataType.registrationRequist); byte[] rdbytes = dc.Pack(); client.Send(rdbytes, 0, rdbytes.Length, SocketFlags.None); byte[] bufer = new byte[Protocol.CoverSize]; Protocol.ReadStream(client, bufer, 0, bufer.Length); Cover report = Protocol.BufferToObject <Cover>(bufer); return(report.BufferType == DataType.registrationComlited); }