Hello,
I want to make our async FTP server, one thread-per CPU MT design. We assign
threads to instances in OnClientConnect, and I have the following code:
void __fastcall ftpServerThread::FtpServerClientConnect(
TObject *Sender,
TFtpCtrlSocket *Client,
WORD AError)
{
Angus Robertson - Magenta Systems Ltd wrote:
I've finished updating the ICS FTP client and server components to
support 64-bit streams and thus single files larger than 2 gigs, when
used with Delphi 6 and later.
The updated components may be downloaded from:
IOW, what is the proper way to assign a worker thread to a Ftp Client
instance?
Best Regards,
SZ
- Original Message -
From: Fastream Technologies [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, October 24, 2005 11:13 AM
Subject: [twsocket] Making TFtpServer
Angus, I took a brief look at your code (btw: I couldn't find it in
the new ICS Beta from yesterday).
Nor I, it's been lost.
Large files can only be used in the client with TFileStream, since
THandleStream and TMemoryStream don't support sizes larger than 2
gigs,
THandleStream
I think it can be simplified, without an own Seek64-function just by
a new custom integer type that would be of Type Int64 in D6 and above.
Yes, that's what I told to Angus when I saw his code. Introducing this datatype
would dramatically
reduce conditional compilation.
--
[EMAIL PROTECTED]
Angus Robertson - Magenta Systems Ltd wrote:
You could probably simply overload GetFileSize() and DecodeMlsResp()
as well.
Was overloading supported in Delphi 1?
No idea, however you could also move condional compilation into the
various helper functions some like the untested lines below.
I think I found out. I used the OnClientConnected to attachthread and
OnClientDisconnected. Seems working now.
Thanks anyway,
SZ
- Original Message -
From: Fastream Technologies [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Monday, October 24, 2005 11:55 AM
Hi,
I wonder why I'm getting a OnConnect/OnDisconnect-Couple even though the
Server is not reachable?
If I try to connect to a server which is not reachable (because I pull
the cable), the client gets an OnConnect followed directly by an
OnDisconnect-Event.
Is this true or is there an error in
Sorry Francois, I totally ignored the error code. I are absolutly right.
_always_ check this error code.
Thank you.
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be