[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FTPAPI



Hello Dennis

Thank you very much. This is just what I've been looking for.

Jan




Am 02.12.2010 10:53, schrieb Dennis Lovelady:
> Yes, I do that.  (A new version of FTPAPI is imminent, by the way.  This
> weekend, I expect.)
>
> In the program that uses the API, create a procedure that takes two
> parameters.  The first parameter would be the standard logging data
> (CHAR,256), and the second is a pointer within your program, that can point
> to anything you like (or could be *NULL).
>
> Then call the FTP_ExitProc() procedure.  Let's say your logging procedure is
> logToIFS, and you don't wish to use an extra pointer.  Here's what you'd
> pass:
>
> rc = FTP_exitProc(mySocket
>                  : FTP_EXTLOG: %Paddr(logToIFS): *NULL) ;
>
> Of course, logToIFS would do the actual logging.  Keep in mind that when an
> exitProc has been specified, FTPAPI will not do ANY logging; it simply
> passes the log data to (in this case) logToIFS and expects that procedure to
> do what's needed.  And if you have multiple sockets open, this would need to
> be called for each.
>
> Dennis Lovelady
> http://www.linkedin.com/in/dennislovelady
> --
> I bought my brother some gift-wrap for Christmas.  I took it to the Gift
> Wrap department and told them to wrap it, but in a different print so he
> would know when to stop unwrapping.
>
>
>> -----Original Message-----
>> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
>> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jan Grove Vejlstrup
>> Sent: Thursday, December 02, 2010 3:59 AM
>> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
>> Subject: FTPAPI
>>
>> Hello
>>
>> I'm using FTPAPI with great success. Is there a way to have the FTP-
>> messages (eg code 220,  331, 503) written to an IFS-file?
>>
>> Best regards
>>
>> Jan
>> ______________________________________________________
>> Jan Grove Vejlstrup
>> WEMAG Consulting AG
>> Bernstrasse 99, Postfach
>> CH-3122 Kehrsatz
>>
>> Tel.: + 41 31 960 36 36
>> Fax: + 41 31 960 36 37
>> Mail: jgv@xxxxxxxx
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------