Function silc_client_file_receive
SYNOPSIS
SilcClientFileError
silc_client_file_receive(SilcClient client,
SilcClientConnection conn,
SilcClientFileMonitor monitor,
void *monitor_context,
const char *path,
SilcUInt32 session_id,
SilcClientFileAskName ask_name,
void *ask_name_context);
DESCRIPTION
Receives a file from a client indicated by the `client_entry'. The
`session_id' indicates the file transmission session and it has been
received in the `ftp' client operation function. This will actually
perform the key agreement protocol with the remote client before
actually starting the file transmission. The `monitor' callback
will be called to monitor the transmission. If `path' is non-NULL
the file will be saved into that directory. If NULL the file is
saved in the current working directory, unless the 'ask_name'
callback is non-NULL. In this case the callback is called to ask
the path and filename from application.
If error will occur during the file transfer process the error
status will be returned in the monitor callback. In this case
the application must call silc_client_file_close to close the
session.
|