Re: [twsocket] Architectural question

2007-03-18 Thread Wilfried Mestdagh
Hello Markus, TCriticalSection will protect your StringList among multiple threads, so that's ok. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] TIcsWndControl Error #14

2007-03-18 Thread Wilfried Mestdagh
Hello Fastream, If this is a windows error then it is ERROR_OUTOFMEMORY. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Sunday, March 18, 2007, 14:59, Fastream Technologies wrote: Hello, What does this error mean? I get this when I open

Re: [twsocket] Some changes IFDEF-ed out?

2007-03-09 Thread Wilfried Mestdagh
Hello Jack, If I recall well he wanted to do mulitple reads in OnDataAvailable. It is not encouraged to use it as it is not tested in later versions. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, March 7, 2007, 23:51, Jack

Re: [twsocket] TWSocket not connecting for me

2007-03-09 Thread Wilfried Mestdagh
Hello Andy, Dont forget to set the Multithreaded property to True ! --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, March 8, 2007, 19:18, info2004 wrote: SZ, I had a look through the list and saw the ref's to get and peek etc.

Re: [twsocket] Problem with web server socket closing after erroneous send

2007-03-09 Thread Wilfried Mestdagh
Hello Fastream, You should do nothing. It is the task of the client to reconnect if session is broken. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Friday, March 9, 2007, 11:10, Fastream Technologies wrote: Hello, I have the following

Re: [twsocket] FReadCOunt and other bombs

2007-02-27 Thread Wilfried Mestdagh
Hello Markus, you can sleep on both of your ears :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, February 26, 2007, 20:38, Markus Humm wrote: Hello, as I found out that FReadCount wasn't prevented from overflowing I'm left

Re: [twsocket] OnSessionClosed

2007-02-14 Thread Wilfried Mestdagh
Hello Markus, This is how TCP works. OnSessionClosed is fired when the other end say Goodbye, or when you try to send something and the other end is not their anymore. There is no traffic if there is no data send, so TCP layer cannot know if for example cable is plugged out. So you have to do

Re: [twsocket] Possible bug and solution in TWndControl

2007-02-06 Thread Wilfried Mestdagh
Hi, It is just a simple constant, why shouldn't it be 800 instead of 100?? Because it is not the source of a bug. No need to change anything if it is not buggy. Changing it and then your code works does not prove there is a bug. --- Rgds, Wilfried [TeamICS]

Re: [twsocket] streaming video client/server application

2007-02-01 Thread Wilfried Mestdagh
Hello Arno, propably you need to pause receiving when receiving is much faster than decoding to prevent infinite grow of your buffers. The problem is UDP. When winsock buffer is full UDP packets are trown away. Maybe no problem ? Maybe better to store on disk to not loose anything and give to

Re: [twsocket] streaming video client/server application

2007-01-31 Thread Wilfried Mestdagh
Hello Jonathan, est-ce que je peut le faire aussi du coté Client ? Yes also the client part. If you do not you will not receive sutch large datagram at once. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, January 31, 2007,

Re: [twsocket] TWSocket TCP-Client address

2007-01-28 Thread Wilfried Mestdagh
Hello Markus, LocalAddr returns the IP address the socket is bound to. PeerAddr is the address on the other end. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Sunday, January 28, 2007, 10:47, Markus Humm wrote: Hello, I've a TCP client

Re: [twsocket] Crash (hang) under heavy load after 1 hourproblemforserver service

2007-01-27 Thread Wilfried Mestdagh
Hello Fastream, Something specific to client's server I guess. Is there a way to see which line number did it got stuck without installing the compiler there? I suggest a lot of debugging code in a file. Put it between a global #define do that you can remove it with just one line in comment.

Re: [twsocket] Exception handling in a Form

2007-01-26 Thread Wilfried Mestdagh
that the try/except block is left right after calling connect and not only until the connection is established or an exception occurs. Could you please explain this? Veit Wilfried Mestdagh wrote: Hello Veit, Normally the components handles their own exception by design

Re: [twsocket] Exception handling in a Form

2007-01-25 Thread Wilfried Mestdagh
Hello Veit, Normally the components handles their own exception by design (as it should be). Be sure you have no exceptions in events. If there is a chance that your code can raise an exception then you should have that event into an try excpet block and handle it. --- Rgds, Wilfried [TeamICS]

Re: [twsocket] Exception handling in a Form

2007-01-25 Thread Wilfried Mestdagh
Hello Arno, Perfect chaos, sorry. Please ignore this mail. That's because we are programmers :) However there is one thing. Hitting 'reply to all' does address the mail also to the original poster. I dont like it as it start often private mailings. And 'reply to all' is a common used button in

Re: [twsocket] Throughput problem with TWSocket over a long line

2007-01-16 Thread Wilfried Mestdagh
Hello Tobias, Looks like http://support.microsoft.com/default.aspx?scid=kb;en-us;823764 is wrong in my special case or the system is automagically increasing the Can you resent the URL please ? It seems dead here. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html

Re: [twsocket] Pause, Resume and wsoNoReceiveLoop

2007-01-16 Thread Wilfried Mestdagh
Hello Jack, It's a while ago, but possible OnDataAvailable is fired when you call Pauze. If this is the reason you can set a flag to call it only 1 time. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your

Re: [twsocket] Still problems while sending SMTP

2007-01-16 Thread Wilfried Mestdagh
Hello Michael, In addition to the reply of Arno: Currently, I have a loop after calling Connect() looking like this: while not FlagDone do begin Sleep(50); end; If this works then be aware that you call connect in another thread as the thread where the component is executing. Maybe it is

Re: [twsocket] Throughput problem with TWSocket over a long line

2007-01-15 Thread Wilfried Mestdagh
Hello Tobias, You find on my site a few programs to test performance with TWSocket. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, January 15, 2007, 16:33, Tobias Rapp wrote: To improve performance you can make your packets equal

Re: [twsocket] WinSock error 10035 with TWSocketServer

2007-01-13 Thread Wilfried Mestdagh
Hello Bevan, I'm not a CBuilder specialis but: AnsiString msg = ((TWSocketClient*) Sender)-ReceiveStr(); This is a good typecast. It tells the compiler that Sender is of type TWSocketClient, so compiler can do the exact address offset calculations within the type. You still have to check if

Re: [twsocket] udp multicast multiple packages - TWSocket bug?

2007-01-12 Thread Wilfried Mestdagh
Hello, I did a quick look. It seems you start (or resume one from pool) a thread and give the received data to it. Probably you give data again to a thread that is still busy with the previous data. You have to check for this somewhere because you tell about corrupted data with many threads.

Re: [twsocket] WinSock error 10035 with TWSocketServer

2007-01-12 Thread Wilfried Mestdagh
Hello Bevan, It is normal that you receive an empty string once a while. Just exit the OnDataAvailable event in that case. When data is really ready to receive OnDataAvailable will fire again. About the 10035 yo dont have to worry. This is internally handled by TWSocket. --- Rgds, Wilfried

Re: [twsocket] Throughput problem with TWSocket over a long line

2007-01-12 Thread Wilfried Mestdagh
Hello Tobias, TCP/IP connection with high round trip times and small packet sizes If packets are max MCU then Nagle will come in and will wait a while to see if you want to send a packet again. Nagle does this to try to concat packets to a larger one to fit into the max packet size. Specially

Re: [twsocket] [PHISHING] - Troubles with using TPinginmultithreaded apps(DnsLook

2007-01-07 Thread Wilfried Mestdagh
Hello Aleksey, There is really not mutch difference between pascal and c. Please look carefully and you know it in minutes. To give a few examples: := = begin { end } = == . - if it is a pointer var need in c the and a few other minor things. if something you dont understeand please ask. ---

Re: [twsocket] wsoNoReceiveLoop problem with bandwidth limiting

2006-12-31 Thread Wilfried Mestdagh
In addition it also has a nice side effect. When it is set and you dont want to receive for a while then just dont receive in OnDataAvailable. Then from that moment OnDataAvailable will not fire until Receive is called once again. --- Rgds, Wilfried [TeamICS]

Re: [twsocket] OT: Merry Christmas

2006-12-26 Thread Wilfried Mestdagh
Thank you ! I also want to whish all of you and your familie my best whishes. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, December 26, 2006, 16:11, Francois Piette wrote: Hello: I just wanted to wish Francois and everybody

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-19 Thread Wilfried Mestdagh
Hello Henrik, I can not spend so many more days on this now (the same for You I would imagine) so I'm planning to return to Indy as long as I can solve their But you can safely use ForceLoadWinsock ! There is absolutely no problem to use it. Only me (we) wanted to dig out where the problem is.

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-18 Thread Wilfried Mestdagh
] [mailto:[EMAIL PROTECTED] För Wilfried Mestdagh Skickat: den 16 december 2006 12:59 Till: ICS support mailing Ämne: Re: [twsocket] Freeze when using smtp after recreating itsparentform Hello Henrik, I have no idea anymore. As test I made a little application in Delphi. Please download

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-18 Thread Wilfried Mestdagh
Hello Henrik, It could be an error in the Winsock load/unload of ICS. Or a windows bug for the dynamically load / unload. Or a winsock bug because of the dual cpu. Or some combination. The latter is easy to test. Put in boot.ini: /NUMPROC=1 or /ONECPU and reboot. --- Rgds, Wilfried [TeamICS]

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-16 Thread Wilfried Mestdagh
WSocketCancelForceLoadWinsock: 1 - 0 procedure WSocketUnloadWinsock: 0 Wsocket finalization: 0 procedure WSocketUnloadWinsock: 0 -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Wilfried Mestdagh Skickat: den 14 december 2006 16:31 Till: ICS support mailing Ämne: Re

Re: [twsocket] Freeze when using smtp after recreating its parentform

2006-12-14 Thread Wilfried Mestdagh
Hello Henrik, this is frustrating :( When the trace dissapears it could also be an AV (unles you have 'stop on exceptions' enabled in the IDE). Can you send me the offending project in private mail, including source and the compiled exe file ? I can do a test on several computers if you want.

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-14 Thread Wilfried Mestdagh
/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, December 14, 2006, 14:39, Arno Garrels wrote: Wilfried Mestdagh wrote: Hello Henrik, this is frustrating :( Welcome to the club. I can do a test on several computers if you want. Please include in your mail the steps nececary

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-14 Thread Wilfried Mestdagh
Hello Henrik, * My workaround so far is to create another smtp component that exists all the time the application is running. I now discovered that this is also true with the Wsocket component. For instance put it on the main form and everything works on all computers. Could it be

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-14 Thread Wilfried Mestdagh
Ok, so it is working, but still remains the question wy the dynamically loading of winsock should not work as it should on some machines ? Arno, you mention a virus, but should it then work with the ForceLoadWinsock ? I recall virusses that did some things with the TCP stack, but it was more the

Re: [twsocket] Freeze when using smtp after recreating itsparentform

2006-12-14 Thread Wilfried Mestdagh
Hello Henrik, What you could do is set in IDE some breakpoints at the places the dll is loaded / unloaded. To see if this mechanism is working fine on the offending machines. It is a counter that increment / decrement to decide if winsock should be load or unload. That's the best idea I have so

Re: [twsocket] Freeze when using smtp after recreating its parent form

2006-12-12 Thread Wilfried Mestdagh
Hello Henrik, Do you have the same problem in the IDE ? Because this way you can check witch code line never comes back (freeze). If not eventually open a console window and write some debug information into it to see where it happens. Your approach is normal. I do this all the time, however I

Re: [twsocket] mail from when redirecting a mail

2006-12-05 Thread Wilfried Mestdagh
a range of retries ? It should be a 5xx which is permanent then it will go back to the sender without retry. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, December 4, 2006, 12:39, DZ-Jay wrote: On Dec 3, 2006, at 12:43, Wilfried

Re: [twsocket] Acess Violation - TCustomWSocket

2006-12-04 Thread Wilfried Mestdagh
Hello Marcelo, I can't even catch the exception Are you sure you dont have a duplicate copy of WSocket.pas where source is a little different ? It should be possible to catch the exception. If you cannot it has somethign to do with the debugger looking in a source that is not the DCU. ---

[twsocket] mail from when redirecting a mail

2006-12-03 Thread Wilfried Mestdagh
Hello, I have just written a small mail redirector. What I do is receive the mail with TPop3Cli and send it without touching the headers with TSmtpcli. Works nice, but have 1 question: What should I fill in the SmtpCli.FromName (MAIL FROM) ? Should this be a local address (a mail account from

Re: [twsocket] mail from when redirecting a mail

2006-12-03 Thread Wilfried Mestdagh
, Francois PIETTE wrote: I would use the original. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: twsocket@elists.org Sent: Sunday, December 03, 2006 3:10 PM Subject: [twsocket] mail from when redirecting a mail

Re: [twsocket] Error 10058 when not sending?

2006-11-30 Thread Wilfried Mestdagh
Hello Jack, Do you mean I should check the ErrCode in the event handlers No check for exceptions. BGException is fired if exception comes from the middle of nowere, that is the message pump. But many events are called from within the message pump. This means if you have an exception in your

Re: [twsocket] Error 10058 when not sending?

2006-11-29 Thread Wilfried Mestdagh
Hello Jack, I think you have to check your event handlers for exception. BGException is fired when exception comes from the message pump. But most event handlers are fired from the message pump as well. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html

Re: [twsocket] TCP stack problems 2003

2006-11-29 Thread Wilfried Mestdagh
Hello, Prolblem found and solved :) Thanks for the replys. The main problem was that if large traffic in 1 direction there was no traffic in the other directions. It was simple: My comm program was sitting in a DLL. TWSocket communication in a separate thread for in case the DLL-caller has no

[twsocket] TCP stack problems 2003

2006-11-27 Thread Wilfried Mestdagh
Hello, Anyone experianced TCP problems on windows 2003 ? I have 2 applications (client / server - TWSocket) talking to each other. Customar run both of them on 1 machine: W2003 SP1. When 1 side send mutch data (5..10 Kb chuncks) it seems the other end (whitch is sending ACK and so [small

Re: [twsocket] TCP stack problems 2003

2006-11-27 Thread Wilfried Mestdagh
Client / Server app is more heavy, it can have transmissions for over 100mbps, but it handles without problem. What version of ICS you are using? I´m using the latest v6 beta and it works fine. Éric - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support

Re: [twsocket] Which TWSocketServer event to capture data sent?

2006-11-21 Thread Wilfried Mestdagh
Hello Clay, Maybe a typo error ? No, all that code was copied-and-pasted from TCPSrv1.pas. Maybe you cast the wrong object ? In a TWSocketSErver event, the Sender argument is TWSocketServer, the Client argument is your clientclass. In the events of the datasockets the Sender argument is your

Re: [twsocket] Still rassling with sending and receiving

2006-11-21 Thread Wilfried Mestdagh
Hello Clay, OK, by going over the clidemo and TCPServ projects (which successfully communicate with each other) with a fine-toothed comb, and setting all my design-time and run-time properties, etc., as in those demos, I was able to get it to work. Good :) --- Rgds, Wilfried [TeamICS]

Re: [twsocket] Receive() returns -1

2006-11-10 Thread Wilfried Mestdagh
Hello, Sorry mixed it up with with a 0 result 0 means a closed connection, -1 means an error, check LastError. Correct that it is an error, but no need to check LastError. TWSocket take care of the error if it happens here. Just Exit OnDataAvailable when Receive returns = 0. --- Rgds,

Re: [twsocket] Receive() returns -1

2006-11-10 Thread Wilfried Mestdagh
Hello Jack, I have a TCP socket client. In some cases, OnDataReceived() gets fired for multiple times with ErrCode = 0 I never have seen a winsock error in OnDataAvailable. You can ignore the check in that event safely. Receive() the return value is always -1 so the application can not read

Re: [twsocket] Why is this list so slow?

2006-11-03 Thread Wilfried Mestdagh
Hello Arno, Latest time I regulary get reply's to some questions, and the questions follow hours after it. Seems you have sortof same problem. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Friday, November 3, 2006, 12:17, Arno Garrels

Re: [twsocket] Having a ICS TServiceApplication server survive a standby (slightly OT)

2006-10-30 Thread Wilfried Mestdagh
Hello Fastream, Could be XP bugs. I have done a few times a standby on XP and dont do it again as some services seems to stop working. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, October 30, 2006, 16:17, Fastream Technologies

Re: [twsocket] Exception on compiling SocketSpy with newest ICSv5/6

2006-10-29 Thread Wilfried Mestdagh
btw, do you know why this executable is so tiny, without using plain winapi or kol? You probably built it using runtime packages. Check the project options. Yes, and that could explain the runtime error that you have if ICS is included and for example run time package not properly updated.

Re: [twsocket] Exception on compiling SocketSpy with newest ICS v5/6

2006-10-27 Thread Wilfried Mestdagh
Hello retnyg, I just downloaded it and compiled and did a test with a server. All seems to work normal. Wich version of ICS do you use ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, October 26, 2006, 21:02, [EMAIL PROTECTED]

Re: [twsocket] Adjusting the receive buffer size?

2006-10-26 Thread Wilfried Mestdagh
Hello Ampersand, TCP framing window let make the receiving buffer grow when needed. You dont need to touch it (I dont think you can but I'm not sure). --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, October 26, 2006, 09:26,

Re: [twsocket] problem with chat program

2006-10-20 Thread Wilfried Mestdagh
Hello larry, Hello! (\0 NULL CHAR HERE) World! (Null char here too) No this is not correct. You will receive: Hello CRLF Workl CRLF TWSocket receive exacly what is sent without adding or removing any byte. But you will receive it in 2 packet if yiu set LineMode to CRLF as Arno pointed out. So

Re: [twsocket] TWsocket server client list Error

2006-10-12 Thread Wilfried Mestdagh
OnClientConnect = WSocketServerExClientConnect Miguel Angel Cañas C. From: Wilfried Mestdagh [EMAIL PROTECTED] Reply-To: ICS support mailing twsocket@elists.org To: ICS support mailing twsocket@elists.org Subject: Re: [twsocket] TWsocket server client list Error Date: Fri, 6 Oct 2006 12:35:51

Re: [twsocket] TWsocket server client list Error

2006-10-06 Thread Wilfried Mestdagh
free the used positions with empty connections (no ip no port). Thank you Miguel Angel Cañas C. From: Wilfried Mestdagh [EMAIL PROTECTED] Reply-To: ICS support mailing twsocket@elists.org To: twsocket@elists.org Subject: Re: [twsocket] TWsocket server client list Error Date: Thu, 5 Oct 2006

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Wilfried Mestdagh
Hello Miguel, BGException is background exception. It comes from the message pump. This means it can come also from your code in one of the TWSocket events. To test put them all in a exception block until you found the error (if it is over there of course). Socket operation on a non socket means

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Wilfried Mestdagh
( WSocketServerEx.Client[ i ] ).Close; end; I can see thar in the case of the no IP no port connections i can do a .Close call Thank you Miguel Angel Cañas C. From: Wilfried Mestdagh [EMAIL PROTECTED] Reply-To: ICS support mailing twsocket@elists.org To: ICS support mailing twsocket

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Wilfried Mestdagh
Hello Fastream, But if a client disconnect with an error in high traffic, which events are you logging ? Seems a wierd problem to me... --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket

Re: [twsocket] MD5 check needed ?

2006-10-05 Thread Wilfried Mestdagh
Hello Arno, What happens in ICS when a corrupted packet has been received? Is DataAvailable being triggered with an error 0 ? I assume you use TCP. No need for additional check. I never have seen a corrupt packet in TCP. Even not on radio networks where there is planty of noise. If I recall

Re: [twsocket] MD5 check needed ?

2006-10-05 Thread Wilfried Mestdagh
Hello Arno, I wasn't sure about how Winsock/ICS handles simple data corruption. What would happen if it happens? Packets are resent. The amount of packets is depending the size of the receive window. If memory serve the receive window (where TCP send ACK) can be till 8 kb. --- Rgds, Wilfried

Re: [twsocket] MD5 check needed ?

2006-10-05 Thread Wilfried Mestdagh
Hello Arno, So I will forget that and sleep well in the future, anyway it's much faster w/o a check, and I like it fast ;-) Yes you can sleep on both of your ears (Flemish proverb); --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To

Re: [twsocket] How can I know that my client is connected?

2006-09-28 Thread Wilfried Mestdagh
Hello David, My question is how can I have a scheme were the clients and server can connect when conditions are right for them to do so and have a definite knowledge in the client that it is connected rather than a connected state that is toggling? OnChangeState is more for logging or

Re: [twsocket] For those who have using twsocket for heavy traffic..

2006-09-26 Thread Wilfried Mestdagh
Hello Samuel, is send, sendto, and sendstr method a synchronized method ? They are not blocking if that is the question. They return immediatly doing the request in the background. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday,

Re: [twsocket] TWSocket - GetPeedAddr versus PeerAddr

2006-09-10 Thread Wilfried Mestdagh
Hello Michael, No difference. The one is a proprty and the other a method. Both return the same. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Sunday, September 10, 2006, 19:35, Michael Preslar wrote: With TWSocket, what is the

Re: [twsocket] OnDataAvailable and Reetrancy

2006-09-01 Thread Wilfried Mestdagh
But TWSocket will swallow the exception, so use this: var AFlag:Boolean procedure TForm.WSocketDataAvailable(Sender: TObject; ErrCode: Word); begin try if AFlag then raise Exception.Create('reentered'); AFlag := TRUE; try [..] finally

Re: [twsocket] :-(( Re: Disconnect detection

2006-08-18 Thread Wilfried Mestdagh
Hello Frédéric, It seems to work, but it would be interesting to understand why I don't get any info at the socket side when I power off the printer for example... This is because the printer does just poweroff. Disconnecting a TCP session means that the disconnecting side will send a packet

Re: [twsocket] Sever architecture

2006-08-18 Thread Wilfried Mestdagh
Hello Brian, I'm eager now to try ICS. Good :) Out of curiosity, is the behavior of the D5 TServerSocket (in non-blocking mode) the same as ICS? I've used the D5 component in the past and have run into some problems that led me to believe it was not serializing properly. Dont know, but I

Re: [twsocket] Using Pop3Cli in a thread

2006-08-17 Thread Wilfried Mestdagh
Hello Patrick, No using TSyncPop3Cli is discouraged. I cannot check at moment. But the component has a data socket, FSocket probably or similar. You can use the messageloop from this one if you sete on this TWSocket MultiThread to true. --- Rgds, Wilfried [TeamICS]

Re: [twsocket] UDP request/response proto

2006-08-17 Thread Wilfried Mestdagh
Hello Arno, What's annoying is that a TTimer creates a window and also requires ExtCtrls.pas to be included. On my site you find a serial comport component (TCiaComPort). It has a custom Timer on board that does not create a window, but can use an existing window. It does not have to include

Re: [twsocket] UDP request/response proto

2006-08-17 Thread Wilfried Mestdagh
/teamics.html http://www.mestdagh.biz Thursday, August 17, 2006, 19:38, Arno Garrels wrote: Wilfried Mestdagh wrote: Hello Arno, What's annoying is that a TTimer creates a window and also requires ExtCtrls.pas to be included. On my site you find a serial comport component (TCiaComPort). It has

Re: [twsocket] Problem in reconnecting.

2006-08-16 Thread Wilfried Mestdagh
onsessionClosed event SendCommand(@CreateNotfChnCmd,69); SendCommand(@AddSrcNotfChnCmd,53); SendCommand(@AddNotfTrgNotfChnCmd,59); SendCommand(@AddReadTrgSrcCmd,52); end; Thanks, Wilfried Mestdagh [EMAIL PROTECTED] wrote: Hello, If the client comes into the state wsConecting then after

Re: [twsocket] Client socket gets disconnected..

2006-08-14 Thread Wilfried Mestdagh
Hello, When the client close, does is generate a winsock error ? Same question for the datasocket at server side? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, August 14, 2006, 11:38, S S wrote: Hello Everyone, I have two

Re: [twsocket] Client socket gets disconnected..

2006-08-14 Thread Wilfried Mestdagh
to create notification channel it shows its state as wsconnecting and does not connect No clue where am i going wrong??? Wilfried Mestdagh [EMAIL PROTECTED] wrote: Hello, When the client close, does is generate a winsock error ? Same question for the datasocket at server side

Re: [twsocket] Interesting multithreading issue: race conditionwhentriggering an event handler

2006-08-07 Thread Wilfried Mestdagh
Hello Arno, This requires atomic reading/writing of a Pointer (no thread switch while read/write), I'm not sure whether this is true. Byte variables are written/read in one go, there's no ploblem. As far as I know it is also the case with a 32 bit. So should be no problem. --- Rgds, Wilfried

Re: [twsocket] Test Exception in WSocket

2006-08-07 Thread Wilfried Mestdagh
Hello, AFAIK, this tool comes with VC++. Unfortunately I do not have that installed. I _think_ there is a freeware downloadable version. But there are also other similar tools I think. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz --

Re: [twsocket] Multithreaded Client Application

2006-08-07 Thread Wilfried Mestdagh
Hello Éric, FSocket is a pointer to socket passed to the thread´s constructor Execute method is ok. Dont forget to ThreadDetach before giving the socket to the thread. Aslo be aware that between the Detach/Attach there is no window assigned and the socket will not be notified of data. It is

Re: [twsocket] Twsocket/onDataAvailable in a DLL, called by a Thread

2006-08-04 Thread Wilfried Mestdagh
Hello, TWSocket has a method 'MessageLoop'. You only have to call this one because it is pumping messages until WM_QUIT is posted to it. To execute TWSocket in thread context you have to do this in Execute method of thread: - Create it in Execute method of thread - Assign properties and event

Re: [twsocket] Connect() time out

2006-08-02 Thread Wilfried Mestdagh
Hello Max, After it I start New smtp session and call SmtpCli-Connect() for next email. I receive 10004 in SmtpRequestDone. Please note: after TimeOut and SmtpCli-Abort() i receive 10004 error for next 20-30 Connect attempts ! 10004 is interrupted system call. Possible you get this with an

Re: [twsocket] Best event to start new Smtp session

2006-07-31 Thread Wilfried Mestdagh
Hello Max, I receive SmtpRequestDone with error 10044 (Interrupted System Call), There must be something wrong in your design to have that error. Are you sure you dont call Abort at the wrong time ? then i PostMessage to initiate new Session, after receiving message by my messages Handler i

Re: [twsocket] HttpClient inside HttpServer

2006-07-30 Thread Wilfried Mestdagh
Hello, You can put it in the Tag property if you cast it to an integer. Later in OnDocDone or whatever you restore it back by typecasting to THttpConnection. Dont forget to make it null when the connection is gone. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Wilfried Mestdagh
Terentiev. Business Software Products. AMS Development Team. [EMAIL PROTECTED] - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Saturday, July 29, 2006 2:04 PM Subject: Re: [twsocket] Best event to start new Smtp session

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Wilfried Mestdagh
Hello Max, I just checked a few projects of me where I use TSmtpCli. I use OnSessionClosed only for logging purposes. So you dont need it. As DZ mentioned is that the reason wy you call Abort ? Then maybe it is better to follow his Reset advice. --- Rgds, Wilfried [TeamICS]

Re: [twsocket] Best event to start new Smtp session

2006-07-30 Thread Wilfried Mestdagh
Hello Francois, I'm not sure. Abort is probably a synchronous method. If not, you'll get an OnRequestDone event. I think it is closing and returning without firing event. It is long ago I checked this... --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html

Re: [twsocket] Very strange problem with server and client software [solution]...

2006-07-29 Thread Wilfried Mestdagh
Hello Hoby, If PutDataInSendBuffer and Send 0 at the end makes a difference then you probably have a problem in the receiver. Same reason as the reason it depent from machine to machine. You can try also with SocketSpy, if it also make a difference then you sure have to check over there. - You

Re: [twsocket] Error in function WSACancelAsyncRequest

2006-07-29 Thread Wilfried Mestdagh
Hello Max, If winsock complains about an Invalid argument, than you have probably some pointer overritten or othere memory problem in your application. There is a debugger setting for overwriting memory, but never tryed it or know that it works well. --- Rgds, Wilfried [TeamICS]

Re: [twsocket] Best event to start new Smtp session

2006-07-29 Thread Wilfried Mestdagh
Hello Max, Use OnRequestDone to trigger next sending, not OnStateChange or OnSessionClosed. Both latter are more for log or display updates. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Saturday, July 29, 2006, 11:48, Max Terentiev wrote:

Re: [twsocket] Multiple clients - no server

2006-07-20 Thread Wilfried Mestdagh
Hello Eric, Yes you can do the same way. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, July 19, 2006, 21:24, Eric Verstrepen wrote: Hi All, I have the following situation. On one computer I have to connect to max. 50

Re: [twsocket] R: Http Post problem

2006-07-18 Thread Wilfried Mestdagh
Hello Rocco, Log with SocketSpy or gpHttpProxy (user made) the difference with browser and THttpcli. This will show what is wrong. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, July 18, 2006, 15:25, Rocco Neri wrote: Francois

[twsocket] test please ignore

2006-07-10 Thread Wilfried Mestdagh
Hello, just to see if the list is working as it is a few days ago some messages arrived. -- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at

Re: [twsocket] test please ignore

2006-07-10 Thread Wilfried Mestdagh
It's too warm to work g Yeah, that will be the reason. I already tought everyone was on holiday :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, July 10, 2006, 16:04, Angus Robertson - Magenta Systems Ltd wrote: just to see if

Re: [twsocket] Thanks

2006-07-10 Thread Wilfried Mestdagh
Hello Jeff, and would lose this great resource if it wandered into multiple languages. Thank you for your nice opinion ! We all do our best :) And the most importand is that finally the community is a good working ICS team... There are many world nations understeanding each others language

Re: [twsocket] How can we automatically set timeout in FTP

2006-07-06 Thread Wilfried Mestdagh
Hello Arnold, Correct, if I'm not mistaken you in fact only need OnRequestDone to check the flow / errors / do next action. There you check ErrCode, if 0 there is server or winsock error. winsock error = 1. Also check RequestType to check the state of the component. You probably want

Re: [twsocket] How can we automatically set timeout in FTP

2006-07-04 Thread Wilfried Mestdagh
Hello Arnold, But in my test, I'm used Put method, not putAsync method. Please try the async methods, it is more encouraged :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing

Re: [twsocket] How can we automatically set timeout in FTP

2006-07-04 Thread Wilfried Mestdagh
Hello Arnold, need to do these transfers step by step and stop it in case of problem. I can’t download or upload several files in same times; that’s why I’m using synchronous methods and not asynchronous. I understeand, but that is not a reason to go sync or async. For example if you need to

Re: [twsocket] WSocket - HOW DO I...?

2006-06-23 Thread Wilfried Mestdagh
Hello Waldemar, In BF2 it uses TCP... anyways... the problem is that i dunno how to set this buffer size This has nothing to do with a buffer size. It is how TCP works. See TCP/UDP primer on overbyte home page. For the problem you have it is very simple. Check the protocol that the server

Re: [twsocket] About TWSocket

2006-06-21 Thread Wilfried Mestdagh
Hello Arnoldo, Is server and client on same LAN without routers in between ? 10053 is 'software caused connection abort'. Until now I only got this error when there is some transport line (leased line or other interconnection) not correct working (most hardware problems). I also recall Norton

Re: [twsocket] About custom messages in V6 ****

2006-06-21 Thread Wilfried Mestdagh
Hello Arno, Just an idea. Wy not making it a startng property ? Then it is evenutally user definable. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, June 21, 2006, 20:53, Arno Garrels wrote: Francois PIETTE wrote: So we could

Re: [twsocket] Help

2006-06-18 Thread Wilfried Mestdagh
Hello Jock, Please use appropriatic subject. Many people will not even read a subject without a given content ! My program and the demo program work, as long as I do not send the attachment file. You dont tell what the problem is. Since you say you get an error after clicking Abort I assume

<    1   2   3   4   5   6   >