🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
5 messages
5 total messages Started by David Mon, 21 Jan 2008 13:43
TidFTPServer DataType = Ascii didn't work
#551
Author: David
Date: Mon, 21 Jan 2008 13:43
19 lines
1364 bytes
Hello,

i've a little Problem with my Indy FTP-Server.

When i upload an Linux-Ascii File to the FTP-Server in Ascii - Mode, the 
Indy FTP-Server did not switch the control-chars.( from Linefeed to Linefeed 
Carriage Return ).

The file will be always transfered in binary mode, but the property is still 
on Ascii.

So it seems that the DataType property did not work correctly.

What can i do ?


Best regardes

David
Re: TidFTPServer DataType = Ascii didn't work
#554
Author: Remy Lebeau (TeamB)
Date: Tue, 22 Jan 2008 18:24
25 lines
1610 bytes
"David" <Bain99@web.de> wrote in message 
news:47949f6e$1@newsgroups.borland.com...

> i've a little Problem with my Indy FTP-Server.

You did not say which version of Indy you are using.

> The file will be always transfered in binary mode, but the
> property is still on Ascii.

That is how TIdFTPServer has always been designed to operate.

> So it seems that the DataType property did not work correctly.

It is not that it doesn't work correctly.  It is not actually used at all. 
The value is stored and nothing else is done with it.

> What can i do ?

There is nothing you can do, unless you want to update TIdFTPServer's source 
code yourself.


Gambit 
Re: TidFTPServer DataType = Ascii didn't work
#566
Author: David
Date: Mon, 28 Jan 2008 13:25
40 lines
2143 bytes
Hello,

thx for your quick answer. My Indy Version is 10.0.52.

Can you give me some exaples how to setup the ascii - mode ?
I've try to intercept the stream by the ConnectonIntercept component. I get 
the store file, list, etc. commands but no TCP/IP stream.

How can i catch the File-Stream behind the FTP-Server ?

thx in advance.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> schrieb im Newsbeitrag 
news:47963a40@newsgroups.borland.com...
>
> "David" <Bain99@web.de> wrote in message 
> news:47949f6e$1@newsgroups.borland.com...
>
>> i've a little Problem with my Indy FTP-Server.
>
> You did not say which version of Indy you are using.
>
>> The file will be always transfered in binary mode, but the
>> property is still on Ascii.
>
> That is how TIdFTPServer has always been designed to operate.
>
>> So it seems that the DataType property did not work correctly.
>
> It is not that it doesn't work correctly.  It is not actually used at all. 
> The value is stored and nothing else is done with it.
>
>> What can i do ?
>
> There is nothing you can do, unless you want to update TIdFTPServer's 
> source code yourself.
>
>
> Gambit
> 
Re: TidFTPServer DataType = Ascii didn't work
#570
Author: Remy Lebeau (TeamB)
Date: Mon, 28 Jan 2008 17:29
29 lines
2073 bytes
"David" <Bain99@web.de> wrote in message 
news:479dd5b2$1@newsgroups.borland.com...

> My Indy Version is 10.0.52.

That is a very old version.

> Can you give me some exaples how to setup the ascii - mode ?

There are no examples.  TIdFTPServer always operates in binary mode only, as 
you have already noticed.

> I've try to intercept the stream by the ConnectonIntercept component.
> I get the store file, list, etc. commands but no TCP/IP stream.

That is because transfers are handled using separate connections.  You are 
hooking the main connection only, which does not perform any transers of its 
own, and TIdFTPServer does not provide any hooks into the secondary 
connections that are actually used for transfers.

> How can i catch the File-Stream behind the FTP-Server ?

You are responsible for providing the streams yourself to the server, via 
the OnStoreFile and OnRetreiveFile events.  You can use whatever stream 
classes you want, even ones you write yourself.


Gambit 
Re: TidFTPServer DataType = Ascii didn't work
#579
Author: David
Date: Tue, 29 Jan 2008 13:14
34 lines
2252 bytes
Thank you very much, i will try it...

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> schrieb im Newsbeitrag 
news:479e10db$3@newsgroups.borland.com...
>
> "David" <Bain99@web.de> wrote in message 
> news:479dd5b2$1@newsgroups.borland.com...
>
>> My Indy Version is 10.0.52.
>
> That is a very old version.
>
>> Can you give me some exaples how to setup the ascii - mode ?
>
> There are no examples.  TIdFTPServer always operates in binary mode only, 
> as you have already noticed.
>
>> I've try to intercept the stream by the ConnectonIntercept component.
>> I get the store file, list, etc. commands but no TCP/IP stream.
>
> That is because transfers are handled using separate connections.  You are 
> hooking the main connection only, which does not perform any transers of 
> its own, and TIdFTPServer does not provide any hooks into the secondary 
> connections that are actually used for transfers.
>
>> How can i catch the File-Stream behind the FTP-Server ?
>
> You are responsible for providing the streams yourself to the server, via 
> the OnStoreFile and OnRetreiveFile events.  You can use whatever stream 
> classes you want, even ones you write yourself.
>
>
> Gambit
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads