> Are there any examples of using threads for client sockets?
Do you mean at server side or at client side ?
I understand you mean at server side.
> Would this time reduce by using threads? I don't wait around for
> anything, so I don't think that there will be time for other threads to
> get in.
I would be interesting to have the /same/ application compiled withj the old
SMTp version and compiled with the new SMTP version. Then run both
applications on the same computer using the same datas and the same server.
This way we can be sure that everything else is identical and only the
componen
> Since two or three days mails posted to elist.org take one
> and a half hour until I receive them back. That's no fun :(
No idea. I haven't noticed a particular slow down.
--
[EMAIL PROTECTED]
http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please go
I think so.
--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be
--
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.over
> I would like to retrieve emails from a pop3 mailbox and forward them
> using smtp. I haven't used ICS for emails yet and wanted to see what
> the process would be.
> Here is what I want to do (synchronously):
You are on the wrong track if your programming model is synchronous. ICS is
asynchrono
Content-Length.
--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: "Fastream Technologies" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Friday, November 03, 2006 4:09 PM
Subject: [twso
> Let me rephrase: while uploading the file, I want to show a progress bar
> in
> HTML but do not know how to do it right now. It needs to update every
> second!
You have a HTTP client (Is it a browser or a program with ICS HTTP client
component) which upload a file to a HTTP server built using
>> I never noticed something like that. I think that _any_ mail now takes
>> approximately 2 hours to process at elist.org. The delay started with
>> 30 minutes or so and grew to current 2 hours.
>>
>> Is there anybody not having this problem?
> Looking back through emails from the list I receiv
11:01 AM
Subject: Re: [twsocket] HTTP Server upload prgress bar
>I want the browser to display a upload progress bar while an HTTP file
> upload is taking place.
>
> Thank you,
>
> SubZero
>
> - Original Message -
> From: "Francois PIETTE" <[EMAIL PROTE
> I think using a single NIC, 64000 sockets could be possible for a proxy
> since we can define the local port of the client connections the same,
> right?
64K sockets if probably the upper limit on concurrent connections per
interface. There are probably other limits which could be reached first
> : >I want the browser to display a upload progress bar while
> : > an HTTP file upload is taking place.
:
> : while the browser is busy uploading the file, you may have another
> browser
> : window (a popup window) updated on a regular basis either purely locally
> : using javascript (not sure y
401 error doesn't mean the server doesn't listen anymore but that
authentication failed. Check the code you have in the OnAuthXYZ events.
--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From:
> I'm looking for good ways to write a device configuration program using
> ICS. The devices to be configured can be configured via Telnet and the
> IP can be assigned via creating some arp entry for it and the first
> packet sent to the device sets its address.
>
> What I'd like to do is:
>
> - se
> Anybody out there anymore?
Sure !
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/list
age -
From: "Igor Pokorny" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Monday, November 06, 2006 11:53 PM
Subject: Re: [twsocket] HTTP Server seems not to listen sometime
> Hello Francois,
>
> I am sorry, I was mistaken. The error is 404 of course.
> I'm really puzzled as to what could be going on here, and
> have no idea how to begin to debug/fix it.
Not easy to figure what the problem can be.
First it is possible that the sniffer doesn't see all the packets. You could
try using SocketSPY (see the "usermade" page at ICS website) to intercep
> I did implement a kind of time-out mechanism into my download thing: if
> no event is triggered for a given amount (no state change, no data
> received, no error) I consider the connection to be "timed out". This
> gets my application back on the track working properly but this feels
> like a hac
There is no limitation I'm aware of in the component. I suspect the SERVER
doesn't like the "to:" header line which is way too long. Are you able to
send such an email using Outlook Express ?
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: "Jody Bowman" <[EMAIL
> Question: Is there a thread safe pattern or approach for scanning the
> client
> sockets in the TWSocketServer collection from a different thread?
Accessing the TWsocketServer.Client[] is /not/ thread safe. You /must/
access it only from the thread which created the TWSocketServer instance.
-
> This fix is for both V6 OverbyteIcsSmtpProt.pas as well as for v5
> SmtpProt.pas
I have applyed the fixe to my source code.
> You should turn on property FoldHeaders in order to keep the line length
> within the range of maximum suggested length, that is only 75 characters.
Shouldn't we turn
> So that's the end of it. It's the server that's causing my troubles...
Good to know.
> Is it worth using different time-out's for different stages of
> connection? Ex: use a long timeout for DNS queryes, use shorter timeout
> for the connection itself, use long timeouts for data transmission it
> I'm having good progress using the THttpCli component, but now I need to
> have a few things cleared in my mind:
>
> (1) I noticed THttpCli component always triggers it's OnRequestDone
> event when it finishes processing, no matter what caused this processing
> to stop (successfully finished down
Borland finally founded a subsidiary for his IDE division aka DevCo aka DTG.
* Press Release: Borland forming CodeGear to focus exclusively on developer
productivity
This press release announces CodeGear - formerly Borland's Developer Tools
Group.
http://bdn.borland.com/article/33819
* Lette
> (1) What happens if I use ContnetRangeBegin and the server doesn't
> support ranges (ex: if I'm downloading the results of a script)? Will I
> end up with the whole document append to the already downloaded portion
> of the document?
You'll get an error.
> (2) I noticed there's a AcceptRanges p
> When I call TWSocket's Send method, I'm getting error 10057,
> "Send Socket is not connected"
It is because you call Send immediately after Calling Connect. TWSocket is a
NON-BLOCKING component. When you call Connect, you get control back
immediately (the next line execute immediately) while the
In my opinion, the servers are not compliant with the standard. Indtead of
tweaking the component, either simply colse the connection yourself or
implement a timeout and close it later if the server don't do it quickly
enough for you.
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/
I think TTnScript is the way to go. You can dynamically add/remove events
according to which "screen" you detect. If you don't use TTnScript, has a
look at his source code to understand how to get hand on the input stream to
chack for data.
I also uploaded a modified version of the components. It
> Ptr := PByte(X);
> while iSize > 0 do begin
>iSent := WSocket_AsClient.Send(Ptr, iSize);
>if iSent > 0 then begin
> Inc(Ptr, iSent);
> Dec(iSize, iSent);
> Continue;
>end;
Your record will be sent in one call to Send(). No need to do a loop !
Also no need to use an i
> Conclusion: I think data corruption might be a problem in some cases.
> Notice how all Linux distributions include MD5 hashes for all downloads,
> so they can be checked on the receiving end?
This is not to detect data corrumption because of data transmission but to
detect "man in the middle" a
> Thanks for all, I understand. Today I have tryed with a simple TCP client
> emulating the SMTP protocol manually, and ALL works good, the server is
> closing the connection. But again using the SmtpCli.pas component the
> connection is not closed or OnRequestDone is not fired (this only happens
>
> When do I need, or would I want, to call Shutdown(), and what are the
> ramifications of the different parameters that one can pass it.
You use Shutdown() to initiate a gracefull close of a TCP session.
Shutdown() send the signal to the remote side to close the connection. The
remote side see
> All of the records have as their first member an Integer named OpCode
> which
> identifies itself as to which type of record it is, such as:
> PInductionComplete = ^TInductionComplete;
> TInductionComplete = packed record
>OpCode: Integer;
>Sort: Integer;
>CarrierCount: Integer;
>
You defenitely doin't need multithread to throttle a connexion. See how it
is done in the HTTP client component where you have a Bandwidth limitation
feature.
> I'm working on a HelpDesk application that should include a Chat function,
> amongst other things. I want to do it all using HTTP only
> If I'm trying to send random data at a speed faster than a TCP socket
> can support,
I don't understand what you want. Obviously you can't make a TCP session
running fatser than a TCP session ! You can make it run slower but not
faster !
Or maybe you want to use UDP which is faster than TCP b
> (1) Not reply to the client until after 10 seconds (using a TTimer?). You
> don't have to sleep. I'm sure the HTTP server has some kind of delayed
> reply mechanism.
Yes, you can reply later. Use hgSendMySelf.
--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[E
> I already looked at TnScript 2-3 minutes, but I think this only works if
> the Telnet session is designed like this:
>
> Step 1 - Step 2 - Step 3... so each step is a screen completely
> different from each other.
TTnScript associate events to strings detected in the data flow no matter
how it
>> (1) Not reply to the client until after 10 seconds (using a TTimer?).
>> You
>> don't have to sleep. I'm sure the HTTP server has some kind of delayed
>> reply mechanism. You can put the client in a 'waiting' list and only
>> send
>> the reply after your timeout.
>>
> That would be plain sim
>>> (1) Not reply to the client until after 10 seconds (using a TTimer?).
>>> You
>>> don't have to sleep. I'm sure the HTTP server has some kind of delayed
>>> reply mechanism.
>>>
>>
>> Yes, you can reply later. Use hgSendMySelf
> Does it work like this?
>
> In my OnGetDocument I set Flags to h
>> I don't understand what you want. Obviously you can't make a TCP
>> session running fatser than a TCP session !
>
> But I can supply data faster than the session can support. The data
> might be coming from another application and I'm sending it over a slow
> modem, so there must be flow contro
I don't know what is the cause of your problem, but I'm sure you should have
a look at AnswerStream method in the component.
--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: "xmedia" <[EMAI
>> Use event OnDataSent to control the flow, and to avoid grow of
>> TWSocket's send buffer.
> That is impossible for random data, unless an extra FIFO buffer is used
> externally to TWSocket.
I don't understand what you mean. You can use OnDataSent to fetch more data
to send.
> Trying to under
> I have been working with ICS for some time and I had the same problem as
> you, I have read the ICS source code and I saw that it doesn´t have this
> flow control on send, what they have is the internal buffer where data is
> stored and sent in background, so, for example, if you have a 56kbps
>
>> I have also implemented a property called MaxSendBuffer
>
> I think this needs to go into TWSocket.
The component doesn't know what to do if too much data is sent. It is the
application responsability to take any appropriate action: throw data away,
pause the data source, overflow the buffer
>>> I have also implemented a property called MaxSendBuffer
>>
>> I think this needs to go into TWSocket.
>
> Agreed.
I don't. See my response to Angus.
--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be
--
To unsubscribe or
There is nothing to understand in the buffering. The buffer is automatic and
only limited by available virtual memory. You get an exception when you run
out of memory, just like you have - for example - when you run out of memory
trying to add strings to a TStringList or anything else. That is just
> > I don't know of ANY component where it is safe to call the message pump
from
> > one of its event without knowing what happend. Even for a simple
> > TButton.OnClick, you can get strange result if you call the message pump
> > within the OnClick handler because the handler is re-entered. The
pr
> < housekeeping needed to handle simultaneous clients.>>
>
> OK -- I was using the Client5 and Server5 demos as a starting point, where
> both the sender and receiver are TWSocket components, are they not?
Server5 is a very very old sample program...
It use TWSocket as server socket. That's fine
> What could be the reason? Any idea?
Cal WSAGetLastError to know the error code.
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be
- Original Message -
From: "Fastream Technologies" <[EMAIL P
> <<> OnDataAvailable() should only fire once for each record, because I am
> > having
> > the sender add a #126 (~) as the last byte of each record, and using
> > LineMode with LineEnd = #126.
>
> WARNING: Since your record contains binary data, it could contains a #126
as
>
> part of the data. So
> << See TTcpSrvForm.WSocketServer1ClientConnect in TcpSrv1.pas source.>>
>
> When I try to use that code, I get an EInvalidCast error, specifically,
> "EInvalidCast - Invalid class typecast" on this line:
>
> with Client as TTcpSrvClient do begin
>
> of the OnClientConnect() event handler.
TWS
> I have a TWSocketServer which is listening incoming clients connections.
> Once a client is connected, the server send data to it.
> Sometimes, I need this client to send command to the server.
> Is it possible with ics components ?
> If yes, how can I do it ?
When the client is connected to the
> Which TWSocketServer event should I code to retrieve incoming data?
None !
Data doesn't come from TWSocketServer but from one TWSocketClient (another
TWSocket derived class) which is instanciated for each incomming connection.
See how it works in TcpSrv sample program.
> The two that fire whe
There is no IMAP component in ICS. Sorry.
Maybe you'll write it ?
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be
- Origin
> it's ok for the server part ?
> is it the same method for the client part (to send data to server) ?
No matter which side you are talking about. It is the same class -
TWSocket - which handle the connection at both ends. So the methods,
properties and events are the same.
--
Contribute to the
> << Alternatively, you may send your data in text form instead of binary
> form.
> It takes more space but you have no problem with line end terminator (The
> default CRLF is perfect) and you avoid problem with binary representation
> of
> data which DIFFER from one processor to another processor
> I noticed something.
>
> If in the OnDocData event handler of THttpCli I somehow re-enter the
> "message pump" (that is, do something that calls
> Application.HandleMessage or Application.ProcessMessages) the downloaded
> file is corrupted! It took me a while to find this out and now I'm asking:
> If I add this line of code (from TcpSrv1.pas):
>
> PostMessage(Handle, WM_APPSTARTUP, 0, 0);
>
> To the FormShow() event, I get this error msg:
>
> "ESocketException - Error 10048 in function Bind Address already in use."
Error 10048 occurs when you try to make a socket listening on a port alr
> << Right. But since you send integer data type, you WILL have #126 in the
> binary data !>>
>
> In the infamous words of Kip Dynamite, "Dang it"
>
> Is there any LineEnd value I can set that will be safe to assume it won't
> get sent in integer data?
Defenitely none !
> Or will I need to pu
> I'm using THttpServer to send a document myself (using hgWillSendMySelf)
> so I can keep sending new data without requiring a new connection. It
> works just fine. Now I want to do the same the other way around: I want
> to use THttpCli to continually "post" data, without closing the
connection.
>I do not think the issue understood the same here and there. Why is
> the Count = -1 then?
When you call Send, passing a number of bytes and send is not able to send
it without blocking and non-blocking mode is active, then send returns -1 to
tell you it can't do what you asked. Nothing is sent
> Using hgWillSendMySelf I noticed the proxy server immediately connects
> the client to the server and the connection is kept open as long as I'm
> sending data. If the proxy server does the same for the "long HTTP post"
> it would provide a very valuable tool for what I need.
I wouldn't base my
> Thanks for the pointer. The error is 10035.
As you can see in the docs, it is WSAEWOULDBLOCK. This not a real error in a
non-blocking environment. It just mean the winsock call would block to
execute the task and non-blocking mode has been selected.
--
Contribute to the SSL Effort. Visit http
> I need a "client" function that connects to server,
> send data and close connection.
You'd better design your application using the asynchronous mode which is
the native mode for ICS. In short, use the events !
> Here, the result is false everytimes because the socket is never
connected.
This
ected)
> ) then
> begin
> Result := false;
> end;
> end;
>
> It works with debug compile when even NO breakpoints are set but does
> not work with release build of the server. FYI, here is the hierarchy
> of the classes:
>
> THttpConnect
> I'll re-explain how my downstream (that is - HTTP
> download) connection works. The client requests a document from my web
> server. It does this going through the proxy. The server response (200
> OK), does NOT send an Content-length header and starts sending the
> document very very slowly, but
Message -
From: "Cosmin Prund" <[EMAIL PROTECTED]>
To: "ICS support mailing"
Sent: Wednesday, November 22, 2006 2:20 PM
Subject: Re: [twsocket] Posting data toweb serverusing THttpCliunder
usercontrol
> Francois Piette wrote:
> > This is proxy implementation dep
To all subscribers:
1) Please do not use HTML or RTF messages in the list. Use only plain/text
messages (by default Outlook uses HTML ! You must change the setting).
When replying, be sure to use plain/text. If someone email to list
accidently NOT in plain text and if you reply to it,
> BTW, what is the netiquette regarding mailing lists as to snipping
> previous
> parts of the thread--should I cut out everything below this, or leave it
> be
> (leaving it be until I hear/read otherwise).
You should keep just enough for everybody to understand what you are talking
about.
--
> I have a trigger event defined that executes a procedure.
>
> TnScript1.AddEvent(1, '10.10.30.','',[efIgnorecase],
> EventProcessingRoutine);
>
> When the EventProcessingRoutine procedure runs in response to the
> trigger is there a way to see/capture the text string/line that
> triggered th
> I propose to create a new ICS yahoo group
As I already explained a lot of times I don't want to have a newsgroup,
specially one that I don't control and which is polluted by anyone.
The mailing list is the tool I like most. That's it.
--
Contribute to the SSL Effort. Visit http://www.overbyte
> Ok, what about a "third-party-ICS-tools" elists.org emailing list?
Just setup your own mailing list or group or whatever you like where you can
find a place. You don't need me for this. But defenitely ICS will not
promote any product except thru the Google adsense program available from
ICS webs
You probably forgot to call TypeSet after setting binary/text mode.
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be
- Origi
I think multicast has some kind of connection to the multicast group. It
make sense to me that no connection is a problem for that connection to the
group. But I have no real experience.
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: "Angus Robertson - Magenta Syst
> My idea is that when this kind of request are received, I will select a
> free thread from a pool of working threads that perform the conection to
> the other server, and when the results arrives, Send() it to the client.
This will not require a thread. The connection, sending and receiving are
I would use the original.
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To:
Sent: Sunday, December 03, 2006 3:10 PM
Subject: [twsocket] mail from when redirecting a mail
> Hello,
>
> I have just written a small mail red
This little message to remind everyone that there is a wiki for ICS
documentation: http://wiki.overbyte.be
The wiki is authored by various contributors. Anyone can help !
If you want to help, please contact me by email. There is work for any level
of ICS expertize: from non experize at all to ve
Jack has patched the latest beta (Downloaded about a week ago) to have
TWSocket support http proxy tunneling. I've uploaded the file at
http://www.overbyte.be/arch/dump/WSocketHttpProxy.zip for everyone review.
--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL
Updated today.
--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: "Francois PIETTE" <[EMAIL PROTECTED]>
To:
Sent: Friday, December 08, 2006 8:27 PM
Subject: [twsocket] TWSo
Have you looked at HTTP client component ? I implemented throttling not so
long ago.
--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message -
From: "Jack" <[EMAIL PROTECTED]>
To: "ICS support mailing"
S
> I normally just call .free never used .released.
You have to use Release when called from an event handler which originate
from the form you are freeing. Release make sure all curent events are
processed. Free does an immediate free which will crash the application if
one event handler is still
> 2) I used threads because i even didn't know that TFTPCli can handle
> concurrent connections. Sure i would try this method, but can you give me
> some advices how to use this feature ? Or even maybe some samples ?
Have a look at FtpAsy sample program (In ICS-V5 but also good for V6
provided yo
> >For your next message, be sure to use a proper subject. Using a proper
> >subject enhance your chances to get an answer.
>
> Is it OK now ?
Not, it isn't.
If you reply to a digest mode, change the subject line from "TWSocket
Digest..." to the original subject of the message you reply to (A d
> I've used your ftp component and I had some problems regarding the
> bin/asc transfer mode. Although your comments inside source code are
> clear, it's not easy to realize that binary property is useless unless
> you call the TypeSetAsync.
>
> I've made some changes in your code in order to enf
>LanceRequete(x); here error when x = 2 (see below)
Which error ?
Why not pass the HttpCli reference to KanceRequete instead of the index ?
--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be
- Original Message
> Each THttpCli has a different Tag (1 to 5) to allow the
> RequestDone know the THttpCli sender;
No need to use the tag property. The "Sender" argument in each event handler
is there just for that purpose: to know who triggered the event ! Of course
you must cast sender argument to the appropri
Speed doesn't change anything. If it works with high speed connection, it
has to work with a low speed connection as well.
I suggest you tes using the FtpTst sample program delivered with ICS.
Also update your ICS to the latest release or even the lates beta which
contain all the fixes since las
n
> raise EHttpException.Create(FReasonPhrase, FStatusCode);
>
> Thanks
> JP
>
> Francois PIETTE a écrit :
>>> Each THttpCli has a different Tag (1 to 5) to allow the
>>> RequestDone know the THttpCli sender;
>>
>> No need to use the tag property. The
> One thing that troubles me is that smtp-components from other vendors
works
> fine also on the computers where ICS gets into trouble.
> What is ICS doing that none of the other smtp components or applications
are not?
Dynamically load/unload WinSock when needed ?
Contribute to the SSL Effort. V
> apparently I haven't enabled SSL for data transfers, only for the
> initial connection and FTP commands. Some servers refuse data transfer,
> saying that SSL is required, although an SSL connection has been set
> up successfully.
You should post your ICS-SSL questions to the ICS-SSL dedicated ma
> I tested the "NUMPROC=1" but with no difference I'm afraid...
>
> Well, perhaps we've done what we can for now. As I've said before:
> Thank You very much for Your efforts!
> I can not spend so many more days on this now (the same for
> You I would imagine)
I have not read the whole thread but I
> We have now discovered that:
> Yes, the error do not arise when using WSocketForceLoadWinsock or having
the
> smtp component on the main form (or creating a dummy smtp component at
> runtime and let it exist while the application is running).
WSocketForceLoadWinsock immediately load the DLL. If
> Hello:
> I just wanted to wish Francois and everybody here in this list a very
> happy Christmas and a prosperous new year!
Thank you very much DZ.
All my best whishes for the new year.
--
[EMAIL PROTECTED]
http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing l
> it, but they are wrapped into headers:
It is the so called MIME format which is used by browsers to send files.
> The question is, how to get rid of this header and footer safely. Is
> it enough just to delete first 4 lines and last 5 lines or it should
> be done some other way?
You should dec
> So, my question is, what is wsoNoReceiveLoop for
wsoNoReceiveLoop tell the component to not loop until the message queue has
no more FD_READ messages. When a loop is done (default) the component
receive data as fast as possible. This maybe result is heavy load on the
computer when the network
> I still have no clue why it's causing TCP stack to send
> TCP zero window to the server... basically when the zero
> window packet shows up, the connection will break.
As far as I know, "TCP zero window" is sent when the comiter is not able to
receive data anymore because the receive buffer is
>I finally found the problem. In OnDataAvailable, in one of
> the cases Receive() did not read all the available data.
I'm happy you found the problem !
> Just to add a bit to the description of the problem - the
> problem only happens when wsoNoReceiveLoop is used.
Wehn wsoNoReceiveLoop is used
You should have a look at the HTTP client component where I implemented the
bandwidth control.
Basically, the socket is Pause/Resumed every second or so. The pause
duration dépend on the bandwidth allowed. At each pause, the actual thruput
is evaluated et then the pause is computed to match the
> I've download this sources. But there is using TICMP component, which
> isn't
> included into ICS.
TICMP is not a component it is a class to encapsulate ICMP.DLL. It /is/ in
ICS. It is the base of the TPing component.
> But i'm talking about original ICS component TPing.
To give the whole pi
To all subscribers:
1) Please do not use HTML or RTF messages in the list. Use only plain/text
messages (by default Outlook uses HTML ! You must change the setting).
When replying, be sure to use plain/text. If someone email to list
accidently NOT in plain text and if you reply to it,
No time to look at your code. Sorry.
Could you tell me why you need a thread for TWSocket ? It is asynchronous
anyway.
If you use a thread, be sure to create TWSocket from the execute method and
to add a message pump in your thread. Also make sure to /not/ call the
message pump from any of the e
1 - 100 of 2582 matches
Mail list logo