/**
 *
 *
 *
 * */
        private static bool SendOperationHeader(Socket socketClient, CommunicationType type, String filename)
        {
            FileSendOnNet myFile = new FileSendOnNet(filename);

            if (type == CommunicationType.Send2Receive)
            {
                myFile.SendFileRequestedCmd_SendFile(socketClient);
            }
            else if (type == CommunicationType.Send2Print)
            {
                myFile.SendFileRequestedCmd_PrintFile(socketClient);
            }
            else if (type == CommunicationType.GetPrinterListXml)
            {
                myFile.SendFileRequestedCmd_GetPrinters(socketClient);
            }
            else
            {
                Debug.Assert(false);
            }

            return(true);
        }