Mtftp4Impl.h revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
1N/A Mtftp4 Implementation. 1N/A Mtftp4 Implementation, it supports the following RFCs: 1N/A RFC1350 - THE TFTP PROTOCOL (REVISION 2) 1N/A RFC2090 - TFTP Multicast Option 1N/A RFC2347 - TFTP Option Extension 1N/A RFC2348 - TFTP Blocksize Option 1N/A RFC2349 - TFTP Timeout Interval and Transfer Size Options 1N/ACopyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR> 1N/AThis program and the accompanying materials 1N/Aare licensed and made available under the terms and conditions of the BSD License 1N/Awhich accompanies this distribution. The full text of the license may be found at 1N/ATHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 1N/AWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 1N/A/// Some constant value of Mtftp service. // This UDP child is used to keep the connection between the UDP // and MTFTP, so MTFTP will be notified when UDP is uninstalled. // Operation parameters: token and requested options. // Blocks is a list of MTFTP4_BLOCK_RANGE which contains // The server's communication end point: IP and two ports. one for // initial request, one for its selected port. // Timeout and retransmit status // Parameter used by RRQ's multicast download. Clean up the MTFTP session to get ready for new operation. @param Instance The MTFTP session to clean up @param Result The result to return to the caller who initiated Start the MTFTP session for upload. It will first init some states, then send the WRQ request packet, and start receiving the packet. @param Instance The MTFTP session @param Operation Redundant parameter, which is always EFI_MTFTP4_OPCODE_WRQ here. @retval EFI_SUCCESS The upload process has been started. @retval Others Failed to start the upload. Start the MTFTP session to download. It will first initialize some of the internal states then build and send a RRQ reqeuest packet, at last, it will start receive for the downloading. @param Instance The Mtftp session @param Operation The MTFTP opcode, it may be a EFI_MTFTP4_OPCODE_RRQ or EFI_MTFTP4_OPCODE_DIR. @retval EFI_SUCCESS The mtftp download session is started. @retval Others Failed to start downloading.