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, > 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 recal

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Wilfried Mestdagh
> It seems the Client[] is not up to date. Perhaps we should remove the client > from there when the disconnect signal is received? (not when the object is > destroyed?) The only reason I can think about is that there is eather an exception error in the OnClientDisconnect event, or something with

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 m

Re: [twsocket] TWsocket server client list Error

2006-10-05 Thread Wilfried Mestdagh
gt; //Close socket. Nothing send. > TTcpSrvClient( 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 <[EMAI

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] Wiki

2006-09-28 Thread Wilfried Mestdagh
Hello Markus, First of all I also want to thank for your entrys, great job ! And yes I'm also pretty sure lots of people can help, so wy not as Markus propose, even if you do a single entry eventually not more than a property somewhere, or some explanasion it would be great help for everybody. -

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 dis

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 differenc

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 AFla

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

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 pac

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. >> >&

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] 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] http://www.overbyte.be/eng/ove

Re: [twsocket] Disconnect detection

2006-08-17 Thread Wilfried Mestdagh
Hello Frédéric, If you start a new subject pleasd do Not reply to an existing subject but start a new one. It is really not mutch work. > What's the best way to detect a broken connection. When connection will break then OnSessionClosed will fire. There you start a timer and after some seconds o

Re: [twsocket] Problem in reconnecting.

2006-08-16 Thread Wilfried Mestdagh
TrgCmd,54);//gets disconnected after > sending this command and fires onsessionClosed event > SendCommand(@CreateNotfChnCmd,69); > SendCommand(@AddSrcNotfChnCmd,53); > SendCommand(@AddNotfTrgNotfChnCmd,59); > SendCommand(@AddReadTrgSrcCmd,52); > end; > Thanks, >

Re: [twsocket] Using Pop3Cli in a thread

2006-08-16 Thread Wilfried Mestdagh
Hi, > 4 - Start your MessageLoop Or use the messageLoop of TWSocket if you dont need to receive custom messages. Set Multithreaded to true. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, August 16, 2006, 07:38, Arno Garrels wrote

Re: [twsocket] Client socket gets disconnected..

2006-08-14 Thread Wilfried Mestdagh
cond send > command 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 questi

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] 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 onl

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] 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, Wilfri

Re: [twsocket] Interesting multithreading issue: race condition when triggering an event handler

2006-08-06 Thread Wilfried Mestdagh
Hello Francois, > Line3: if Assigned(OnMyEvent) then > Line4: OnMyEvent(Self, MyArg); Very interesting issue. Because almost all components are coded like this. Very interesting solution also, clean and simple :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamic

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 ha

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

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

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 http://www

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] http://www.overbyte.b

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

2006-07-30 Thread Wilfried Mestdagh
se of successfull sending (no Abort) ? > --- > With best regards, Max Terentiev. > Business Software Products. > AMS Development Team. > [EMAIL PROTECTED] > - Original Message - > From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> > To: "ICS support ma

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 http

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] Error in function WSACancelAsyncRequest

2006-07-28 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] http://www.overby

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

2006-07-28 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 me

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 >

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 b

Re: [twsocket] test please ignore

2006-07-10 Thread Wilfried Mestdagh
> It's too warm to work 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

[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 http://www.ov

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-06 Thread Wilfried Mestdagh
Hello Arnold, > It’s stupid because I had finished my tool !!! I hope that it’s almost the > same thing to do ! If it is finished and working well then no need to change. It is not the same, but consider for a new project. It is not the same, it is different, but you have more control and you are

Re: [twsocket] THttpServer How to receive posted files

2006-07-06 Thread Wilfried Mestdagh
Hello Rafael, There is an example for POST in one of the ICS examples. To upload a file it is exacly the same as any other post data. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, July 4, 2006, 21:23, Rafael A. Morales Castro wrote

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 t

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] WSocket - HOW DO I...?

2006-06-22 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 us

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 cou

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 fi

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

Re: [twsocket] MailSnd demo problem

2006-06-16 Thread Wilfried Mestdagh
t; on >>> port 25: connection failed" >>> >>> I can ping the server using the IP address direct or the server name >>> (proving that the DNS is OK) and I have a packet sniffer that I used LC>> to >>> trace the connection when I used Outlook E

Re: [twsocket] MailSnd demo problem

2006-06-16 Thread Wilfried Mestdagh
nection failed but I am not exactly sure what I am > supposed to do with telnet so that may be a red herring. > This is driving me nuts. I am now at a complete loss. > Chris > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of Wi

Re: [twsocket] MailSnd demo problem

2006-06-15 Thread Wilfried Mestdagh
Hello Chris, 10053 is "software caused connection abort". Usually this is when something is wrong between client and server. What happens if you just open a telnet session from the same machine as where you try the SMTP client on ? See FAQ on my site for SMTP commands. --- Rgds, Wilfried [TeamICS

Re: [twsocket] Sending with SendStr loses packets

2006-06-15 Thread Wilfried Mestdagh
Hello Michael, TCP will not loose messages, but does not respect packet boundaries. So if you send 2 strings then possible a part of second string is received in the last receive chunck of the first string etc... So you have to let the receiver know when data ends. You can do this by using a termi

Re: [twsocket] Receiving UDP

2006-06-05 Thread Wilfried Mestdagh
Hello David, As far as I know you cannot. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, June 5, 2006, 19:20, David A. G. wrote: > Hello all, I have a little question about UDP. > Using TWSocket, how can I know if the received data

Re: [twsocket] Help file for FTPClient

2006-05-30 Thread Wilfried Mestdagh
plan to do so. > Bests, > Peter > On Tue, 30 May 2006 15:18:06 +0200, Wilfried Mestdagh <[EMAIL PROTECTED]> > wrote: >> Hello Peter, >> >> Correct. There is already some framework on http://wiki.overbyte.be but >> all still need to be done. You ar

Re: [twsocket] Help file for FTPClient

2006-05-30 Thread Wilfried Mestdagh
Hello Peter, Correct. There is already some framework on http://wiki.overbyte.be but all still need to be done. You are of course welcome to help :) And also this is the best learning tool ever exists :) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mest

Re: [twsocket] Threaded Socketspy Demo

2006-05-29 Thread Wilfried Mestdagh
Hello Ryan, Please note that the slowdown is alos because of the logging. Writing to screen is very slow in windows. If you still need the logging then you have to do it in main thread also eather by synchronizing or by posting messages with the log data. About the threading. I think you only nee

Re: [twsocket] Multithreading with TFTPClient

2006-05-28 Thread Wilfried Mestdagh
hine where I read mail on cannot read .png files, so I cannot >> see it. > Here are the same picturse as jpeg: > 9 Threads: > http://img97.imageshack.us/img97/7742/9threads4lc.jpg > 10 Threads: > http://img224.imageshack.us/img224/1348/10threads2uq.jpg > Joshua > -

Re: [twsocket] Multithreading with TFTPClient

2006-05-27 Thread Wilfried Mestdagh
Hello Joshua, > I want to use the FTPClient in multithreading You dont need to multithreading with ICS components. Possible you need a thread if you have many simultanous connections and very high data transfer to not block the main thread. Also if you have thousands of connections then it can be

Re: [twsocket] TWSocket - send bytes - strange chars

2006-05-26 Thread Wilfried Mestdagh
Address:100.200.300.400 >> Port : 9000 >> >> In TWSocket >> Address: 100.200.300.400 >> Port : 9001 >> >> Is this the way it should work? >> I have a router between, but this does not do it, does it? >> Thx >> Werner

Re: [twsocket] TWSocket - send bytes - strange chars

2006-05-25 Thread Wilfried Mestdagh
s > 31 and < 127 but it remains the same. > Rgds, > Werner > - Oorspronkelijk bericht - > Van: "Wilfried Mestdagh" <[EMAIL PROTECTED]> > Aan: "ICS support mailing" > Verzonden: woensdag, mei 24, 2006 09:25 > Onderwerp: Re: [twsocke

Re: [twsocket] TWSocket - send bytes - strange chars

2006-05-24 Thread Wilfried Mestdagh
Hello Werner, I'm pretty sure this is a Java problem. Something to do with the 16 bit char conversion. If you try text with char <= 127 then do you have same problem too ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, May 23, 2006,

Re: [twsocket] Error 10048 in function Bind

2006-05-23 Thread Wilfried Mestdagh
Hello Allan, Means that the combination addr:port is in use. You can check this with netstat -a --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, May 22, 2006, 15:49, Allan Fernandes wrote: > Hi, > I am getting the following error whe

Re: [twsocket] ICS TftpCLient 100% cpu load

2006-05-16 Thread Wilfried Mestdagh
Hello jacques, Use async methods, then nothing is running in a wait loop and you will consume almost no CPU. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, May 16, 2006, 15:47, jacques marchal via adepi.be wrote: > I am testing the

Re: [twsocket] reset connection

2006-05-05 Thread Wilfried Mestdagh
Hello Paul, For winsock it make no difference, socket will close anyway. It is possible that you have due to the bad (inter)networking problem many sockets in TIME_WAIT state. Possible you ran out of free memory (non paged) witch is recovered after reboot. I dont think you can recover it yourself.

Re: [twsocket] UDP SendTo() sends two packets?

2006-05-04 Thread Wilfried Mestdagh
Hello Jack, Do you send to a broadcast address or to a specific address ? Do you have 1 or 2 IP addresses in the sending machine ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, May 3, 2006, 00:52, Jack wrote: > I have the code t

Re: [twsocket] Example for protecting a page with password ?

2006-05-04 Thread Wilfried Mestdagh
Hello Stefan, I assume you talk about THttpSrv ? If so then you find an example on my site. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, May 4, 2006, 16:23, Stefan Blankenagel wrote: > Hi, > has anyone an example how a page can

Re: [twsocket] Disconnect

2006-05-04 Thread Wilfried Mestdagh
Hello Abdullah, You can check winsock error in OnSessionClosed of your client program. If it does have an error and you never call Close(Delayed) in your client then you can assume that server close connection. If you have errorcode then possible it is due to data loss or some firewall interferin

Re: [twsocket] HttpCli Abort or Close

2006-05-03 Thread Wilfried Mestdagh
Hello Paul, Abort; Then OnRequestDone will not trigger again (euh if my RAM serve me well) --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, May 3, 2006, 22:13, Paul wrote: > Wich is the best method to call in the HttpCliRequestDone

Re: [twsocket] SMTP Client in IntraWeb application

2006-05-02 Thread Wilfried Mestdagh
Hello George, I dont know those other components. But ICS needs a working message pump. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, May 2, 2006, 14:10, George wrote: > No Message pumb? > All other components work correctly, also

Re: [twsocket] Problem with HTTP-server

2006-05-02 Thread Wilfried Mestdagh
Hello Stefan, In most events of Thttpserver you have Sender and Client arguments. Sender is the server, client is the HttpConnection. So probabley you want to do: ClientCnx := Client as TMyHTTPConnection; --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.me

Re: [twsocket] Hi there need exampel or help with Threading

2006-05-02 Thread Wilfried Mestdagh
> Cooperative Thanks. It is because of electromagnetic interferences in my keyboard :) --- 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 http://www.elists.org/mail

Re: [twsocket] Hi there need exampel or help with Threading

2006-05-02 Thread Wilfried Mestdagh
Hello NeiSep, > well i read about it but i don't get can i connect to several servers > without using Threading ? > and also receive stuff for every thingy? ICS components are using corporative multitasking, meaning they do their work in background without using threads. Technically this means th

Re: [twsocket] TWSocket and DLL again

2006-04-27 Thread Wilfried Mestdagh
Hello Markus, Just free the socket. It will self close when it is connected. Your code will work of course. When connected it will exit the loop immediatly because OnSessionClose is called from within the Close method, and when not connected it will time out. But it is not needed. --- Rgds, Wilf

Re: [twsocket] FTP Server in Service dying.

2006-04-20 Thread Wilfried Mestdagh
Hello Sham, The code say: "Should never comes here" so I'm wondering what is wrong here. Did you test your application in a normal GUI and do you experiance same error ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, April 20, 2006

Re: [twsocket] FTP Server in Service dying.

2006-04-20 Thread Wilfried Mestdagh
Hello SZ, a tservice has a message pump, so possible he use this one: while not Terminated do ServiceThread.ProcessRequests(True); --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, April 20, 2006, 16:01, Fastream Technologie

Re: [twsocket] Just got my hands on BDS2006 BUT...

2006-04-20 Thread Wilfried Mestdagh
Hello David, Please stay cool. ICS support all compilers, Francois test on each supported compiler. But most of the helping hands here are using Delphi. Note that all helping hands here are do this for free and sometime in the middle of their own importand projects. --- Rgds, Wilfried [TeamICS] h

Re: [twsocket] httpcli does not work on dial-up connections?

2006-04-13 Thread Wilfried Mestdagh
Hello Jack, try a telnet session in port 80 with the host to test the connection. If it connect then the route is 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

Re: [twsocket] Postmessage in Service application

2006-04-12 Thread Wilfried Mestdagh
Hello Paul, > That's was my first impression also, however RPPollSvc.Handle doesn't exist > :-( Correct. TService is derrived from TDataModule and has no windows handle. However you can make one with AllocateHWND. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http

Re: [twsocket] Postmessage in Service application

2006-04-11 Thread Wilfried Mestdagh
Hello Paul, > Isn't there anyway to get the threadid of the service application ? Service.ServiceThread.ThreadID; --- 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

Re: [twsocket] Postmessage in Service application

2006-04-11 Thread Wilfried Mestdagh
Hello Paul, > I have made an object of the complete server, so I can compile it as a > program or as a service application. Simple, add a hiden window to the object and post messages to that windwos hadnle instead of the form. alternative, you find on my site a simple class to include. then you

Re: [twsocket] Postmessage in Service application

2006-04-11 Thread Wilfried Mestdagh
Hello Paul, There is no difference ! PostMessage post a message to a (hidden) window, while PostThreadMessage post a message to a threadID with a messag pump. Can you eventually clarify your question ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestd

Re: [twsocket] Cannot change port if not closed

2006-04-08 Thread Wilfried Mestdagh
t; > Now, I am trying to change this model to work with asynchronous ICS >> > components. Are you saying that I should not use the threads and simply >> > create the ftp clients in normal objects? The onrequestDone will be >>fired >> > within the ftp connectio

Re: [twsocket] Cannot change port if not closed

2006-04-08 Thread Wilfried Mestdagh
ction thread. Would this allow me to have multiple ftp > clients each sending data and have the progress bars updated simultaneously? > Sham. >>From: Wilfried Mestdagh <[EMAIL PROTECTED]> >>Reply-To: ICS support mailing >>To: ICS support mailing >>Subject: Re

Re: [twsocket] Cannot change port if not closed

2006-04-08 Thread Wilfried Mestdagh
e information Wilfried. >> >>One thing I have realised is that my outputDebug messages are not showing >>(they were showing when I was using indy). >> >>You said that I should have a working message pump. Not sure what you mean >>here? >> >>Thanks. >

Re: [twsocket] Cannot change port if not closed

2006-04-08 Thread Wilfried Mestdagh
u mean > here? > Thanks. > Sham. >>From: Wilfried Mestdagh <[EMAIL PROTECTED]> >>Reply-To: ICS support mailing >>To: ICS support mailing >>Subject: Re: [twsocket] Cannot change port if not closed >>Date: Sat, 8 Apr 2006 10:38:45 +0200 >> >>

Re: [twsocket] Cannot change port if not closed

2006-04-08 Thread Wilfried Mestdagh
Hello Shamresh, > In my client I have set multithreaded to true (but not on the server). No. Multithreaded is if you create the component in a thread other than the main thread. However I'm not sure this is related to your problem. > I have just moved over from indy, so non blocking events are g

Re: [twsocket] HTTPCli in dynamically-loaded BPL

2006-04-06 Thread Wilfried Mestdagh
Hello Mike, I never tryed this, but as far as I know a runtime package has to behave the same as a design time package, only that it is not linked and loaded at run time. What happens if you put same into a design time component ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/

Re: [twsocket] Number of characters in HtmlSmtpClient.HtmlText property

2006-04-06 Thread Wilfried Mestdagh
Hello Paweł, Can you step with the debugger trough it to see where the line is truncated ? Sure there is a line limit, but dont know from the top of my head if how long and if the component split it in more lines. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http:

Re: [twsocket] wm_quit in requestdone in thread

2006-04-05 Thread Wilfried Mestdagh
Hello, Release post a message to the component's hidden window to destroy it. The destruction is done in the message handler. WM_QUIT will exit the message loop if using GetMessage, and it will also terminate program for example, but it is not the same. It is pure depandant of what the programmer

Re: [twsocket] wm_quit in requestdone in thread

2006-04-05 Thread Wilfried Mestdagh
Hello Arno, > Eh, my OE has no syntax check, why? ;-) We should write our own with TSmtpCli and syntax check. --- 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 ht

Re: [twsocket] Error 10053?

2006-04-05 Thread Wilfried Mestdagh
Hello Jack, 10053 is WSAECONNABORTED or in words: 'Software caused connection abort' witch means that the OS has decided to abort the connection due to some uknown reason. It is not nececary the OS, can also be a decision of a router. Question: You are getting connected without winsock error do y

Re: [twsocket] THttpCli and UPnP devices

2006-04-03 Thread Wilfried Mestdagh
Hello Kris, > Basically, I cannot connect to port xxx for sending when I'm already > listening to it... A socket can send and receive both. UDP Connect is the same as UDP Listen. So you can not do both. The difference is the handling. If you call connect then send, then you send to the addr:port

Re: [twsocket] THttpCli and UPnP devices

2006-04-02 Thread Wilfried Mestdagh
Hello Kris, > now and then the WSocket->>>OnDataAvailable does not get triggered This is because UDP is not reliable. If packet is received between the time you close the socket and set it to listen, then it is trow away. But wy ? Just connect, send, and that's all. If someone sends back the On

Re: [twsocket] Mercy !!

2006-03-31 Thread Wilfried Mestdagh
Hello Allan, You can sleep on both of your ears :) The version 5 of ICS will stop upgrading at a certain moment, while V6 will be regulary upgraded. This will not mean there will be no support anymore. This list is alive and will stay so. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/ov

Re: [twsocket] Port number

2006-03-31 Thread Wilfried Mestdagh
gt; > command, then close again. And I see the port increasing fast, what > about a >> > limit ? can I reset the portnumber?, it's a black hole for me. >> >> > The client has port 2000. When the client change his port to 2001, is > there >> > a way, when con

Re: [twsocket] Port number

2006-03-31 Thread Wilfried Mestdagh
Hello Frans, > was the default not 240seconds, posible minumum value 30sec ? And the port > limited by maxuserport? Yes I think you are right. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TW

Re: [twsocket] Port number

2006-03-31 Thread Wilfried Mestdagh
t. Ofcourse it wil work fine if the client don't change > his port number. > Thanks a lot > Werner > - Oorspronkelijk bericht - > Van: "Wilfried Mestdagh" <[EMAIL PROTECTED]> > Aan: "ICS support mailing" > Verzonden: vrijdag, maart 31, 2006

Re: [twsocket] Httpcli not working, need suggestions

2006-03-31 Thread Wilfried Mestdagh
Hello Jazzy, What happens if you do a telnet session to 192.168.1.1 op port 80 on the same machine as where you try the httptst on ? Does it get connected ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Friday, March 31, 2006, 08:22, Jazzy

Re: [twsocket] Port number

2006-03-31 Thread Wilfried Mestdagh
Hello Werner, It is the exact peer port. I try to explain: -- for a server -- Server listens on a certain addr:port. Client connect to that port, but server should stay listening, so the listening port has to be kept free, so as fast as possible the socket is duped to another local port. This por

<    1   2   3   4   5   6   7   8   >