An example on how I do it:
procedure TUser.SocketDataAvailable(Sender: TObject; Error: Word);
Var a: Integer;
abc,d: string;
begin
if ToRcv = 0 then // NEW PACKET INCLUDING HEADER
begin
NBuffer:= NBuffer + NSocket.ReceiveStr;
AnalyzePacket;
end
else
begin
if NSocket.RcvdCoun
Hello Igor,
Make a record with same structure in your receiver. Give it the same
address as the pointer where you receive data to (with a ReadPtr and
WritePtr). Set a flag if you have recieved >= 8 bytes, then you know the
length to receive. Allocate enough memory and reallocate if nececary,
leve
> I consider it should be best solution to wait for full record in
> OnDataAvailable procedure, to do a new record and send some USER
> message. Am I right?
I think so.
Remember that you may receive all or part of the data that follow the header
and possibly also the next header. Be careful when
Well, I would like to thank to all of you tried to help me. I have found
the way how to manage a buffer in TWSchat1.pas (Thank you, Francois).
BTW I would prefer to use Linemode too but I am not allowed to write TCP
client by myself, it's a part of delivered software.
FYI, every packet i obtain
> How I can set file atributes (-rw-rw-rw- for example)?
> Should I use "Quote" method to send literal command to FTP server or
> there is another way?
Quote is the way to go.
FTP protocol has no provision to set attributes, your rely only on platform
and server specific commands to be executed u
Hello!
How I can set file atributes (-rw-rw-rw- for example)?
Should I use "Quote" method to send literal command to FTP server or
there is another way?
Thanks!
Best regards,
Artem Antonov.
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/ma
if found how to do it by google:
http://www.chami.com/tips/delphi/011497D.html
thx all
On Mon, 15 Aug 2005 13:57:25 +0200, Arno Garrels <[EMAIL PROTECTED]>
wrote:
> Roland Frei wrote:
>> hi
>> how can i globaly hanlde ftpserver execptions ?
>
> Generaly use a global exception handler for all un
> Is it bug of FTPCli or it's depend only
> from FTP server?
The list of files is built by the server _only_.
The client has no impact on what the server returns.
The directory list is seen as a text file from the client.
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message
> how can i globaly hanlde ftpserver execptions ?
> i understand how to make it on a client side but i am confused how to do
> it
> on a server.
Not sure I understand what exceptions you mean.
Anyway, have you tryed with Application.OnException ?
--
Contribute to the SSL Effort. Visit http://ww
Roland Frei wrote:
> hi
> how can i globaly hanlde ftpserver execptions ?
Generaly use a global exception handler for all unhandled
exceptions only.
You should handle exceptions locally where they are being raised.
This not only applies to ICS but also generally to all Delphi applications.
Arno
Hello!
I have question concerned getting time modification of file from FTP
Server.
When I get list of files (ExecuteCmd(FtpClient.Dir,
FtpClient.DirAsync)) from Linux (SuSe) FTP server, I get wrong time
modification (for example, file was modified in 14:50, but I get
12:18).
From Windows F
hi
how can i globaly hanlde ftpserver execptions ?
i understand how to make it on a client side but i am confused how to do it
on a server.
thank for helping
roland
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
> I need to establish a program to program connection between two computers;
> one running windows XP, the other running Windows 3.11. I have Delphi 7 on
> the XP and Delphi 1 on the 3.11. I was going to install the ICS suite on
> the
> 3.11, but ICS uses long filenames which are not legal in 3.11
Please read the messages with subject "[twsocket] HttpCli content encoding".
We (Maurizio and I at least) would like to have your opinion about the
future version of the HTTP component. There are implementation details that
has to be choozen. We need input from you, the users !
If you don't unde
> Thank Francois for your answer. I hope other people will partecipate
> to this discussion.
Me too !
>>a) Isn't it possible to defer call to THttpContentCoding.GetCoding until
>>it
>>is really needed so that exceptions are raise at that time ?
>
> I made some changes, now the GetCoding is calle
Brian and Wilfried gave the solutions for binary transfers. The thing to
remind is that the receiver has to know what data he has to receive: kind
and length. For fragmentation, has a look at the document 'tcp/udp primer'
available from the support page at my website.
Personnally, I always try
Hello Igor,
> My TCP communication isn't line oriented.
Then how are is the data constructed ? If it has no END character, then
there must be something else like:
- a count byte/word/dword
- fixed size
- a byte with the type of packet
- ...
---
Rgds, Wilfried
http://www.mestdagh.biz
Monday, Aug
17 matches
Mail list logo