home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
root
/
usr
/
share
/
YaST2
/
modules
/
TFTP.ycp
< prev
next >
Wrap
Text File
|
2006-11-29
|
983b
|
42 lines
/**
* File: modules/TFTP.ycp
* Package: Transfer Protocols
* Summary: Handle TFTP Requests
* Authors: Anas Nashif <nashif@suse.de>
* Flags: Stable
*
* $Id: TFTP.ycp 31241 2006-06-01 12:32:41Z locilka $
*
*/
{
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 */
}