/**
 * File:    modules/TFTP.ycp
 * Package: Transfer Protocols
 * Summary: Handle TFTP Requests
 * Authors: Anas Nashif <nashif@suse.de>
 *
 * $Id: TFTP.ycp,v 1.5.4.1 2004/05/05 21:52:47 nashif Exp $
 *
 */

{

module "TFTP";

/**
 * Send a get request
 * @param server server address
 * @param remote  remote file
 * @param local file to save result to
 * @return boolean true on success
 */
global define boolean Get(string server, string remote , string local) ``{
    string serverstr = sformat("%1:%2", server, remote);
    return (boolean) SCR::Execute(.tftp.get, serverstr, local);
}

/**
 * Send a put request
 * @param server server address
 * @param remote  remote file
 * @param local file to save result to
 * @return boolean true on success
 */
global define boolean Put(string server, string remote , string local) ``{
    string serverstr = sformat("%1:%2", server, remote);
    return (boolean) SCR::Execute(.tftp.put, serverstr, local);
}

/* EOF */
}
