/** * * * * */ //public bool ReadFileHeader(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 // { // Debug.Assert(false); // } // return true; //} /** * * * * */ /* private static CommunicationType RcvOperationHeader(Socket client) * { * FileSendOnNet myFile = new FileSendOnNet(); * return myFile.RcvFileRequestedCmd(client); * }*/ /** * * * * */ private static FileSendOnNet RcvOperationHeader_EXT(Socket client) { FileSendOnNet myFile = new FileSendOnNet(); myFile.RcvFileRequestedCmd(client); return(myFile); }
/** * * * * */ //public bool ReadFileHeader(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 // { // Debug.Assert(false); // } // return true; //} /** * * * * */ private static CommunicationType RcvOperationHeader(Socket client) { FileSendOnNet myFile = new FileSendOnNet(); return(myFile.RcvFileRequestedCmd(client)); }