/// <summary> /// Посылает запрос через tcpClient и получает ответ /// </summary> /// <param name="request">Посылаемый запрос</param> /// <param name="tcpClient">Соединение, с помощью которого нужно послать запрос</param> /// <returns>RTSP-ответ, завернутый в класс RTSPResponse</returns> public static RTSPResponse Get(RTSPRequest request, TcpClient tcpClient) { string req = request.ToString(); string response = Send(req, tcpClient); return(RTSPResponse.Parse(response)); }