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

Re: Mixed FTP_GET misbehaves due to not resetting FTP_Linemode



Sender: "l.maartens" <l.maartens@xxxxxxxxx>

Ok, that is clear, I will add this to the FTPAPI and forward the changes.


----- Original Message ----- 
From: "Scott Klement" <sk@xxxxxxxxxxxxxxxx>
To: <ftpapi@xxxxxxxxxxxxx>
Sent: 15 November, 2005 18:49
Subject: Re: Mixed FTP_GET misbehaves due to not resetting FTP_Linemode


> Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>
>
>
> The linemode would need to be saved and restored in all three routines,
> FTP_put(), FTP_get() and FTP_append().  Otherwise if you mixed put/get
> you'd have the same problem.
>
> ---
> Scott Klement  http://www.scottklement.com
>
> On Mon, 14 Nov 2005, l.maartens wrote:
>
> > Hi group,
> >
> > Just to warn users of the FTPAPI that when getting a QSYS file followed
by an IFS file, (both in ASCII mode) you should call FTP_LineMode with *off
to reset the WkLinemode value. If you do not rerun the procedure than the
linemode of the preceding Qsys get is used (which is *on) and therefore
upsetting the default value of *off.
> >
> > I propose to save the linemode before actually getting the file, and
than reset it. For sofar as I can see that should then be done within the
FTP_Get procedure.
> >
> > The saveing and resetting is required since the FTP_LineMode procedure
can also be called independently.
> >
> >
> > Kind regards,
> >
> > Loek Maartens,
> > Veracity Software Consultancy BV
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubsribe from the list send mail
> to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
> -----------------------------------------------------------------------
>


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------