[twsocket] multithread server

2011-08-17 Thread Lukas Skala
hello, I have tcp server (developed as Windows Service) based on OverbyteIcsThrdSrv1.pas demo. There is maximum of 200 clients. Server is hanging after some time of running - it is unable to connect any new client. I have added log in all events of TWSocketServer (оn events start line and

Re: [twsocket] thread safety and async operation

2011-08-17 Thread Zvone
Basically you answered what I needed to know. As long as no ProcessMessages is called it is safe to use in non-thread safe environment with single thread. Thanks for the answer. -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] multithread server

2011-08-17 Thread Francois PIETTE
Sometimes Windows triggers OnDataAvailable when no data is actually available. This is how it works. It is safe to ignore it. The most important is to call Recv (or any derivative) anyway. Using RcvdCount to decide to call or no Recv is wrong. Always call Recv which is the only one to actually

Re: [twsocket] SSL and TLS for TSmtpCli

2011-08-17 Thread Neal Barnett
Arno - or Encrypted Connection: SSL Port: 465 This is commonly SSL-type Implicit (TLS Connection). The difference between Implicit and Explicit is that Implicit establishes a secure SSL/TLS connection and Explicit starts with a plain text connection that is turned into a secure connection

Re: [twsocket] multithread server

2011-08-17 Thread Wilfried Mestdagh
Hi, If OnDataAvailable triggers then you have to try to receive data, even if RcvdCount (wich is unreliable) returns 0. If you don't receive then OnDataAvailable will be called again in a closed loop en that is probably what happens. -- mvg, Wilfried http://www.mestdagh.biz

Re: [twsocket] SSL and TLS for TSmtpCli

2011-08-17 Thread Arno Garrels
Neal Barnett wrote: Arno - or Encrypted Connection: SSL Port: 465 This is commonly SSL-type Implicit (TLS Connection). The difference between Implicit and Explicit is that Implicit establishes a secure SSL/TLS connection and Explicit starts with a plain text connection that is turned

[twsocket] ICS v5: Raw sockets

2011-08-17 Thread Koker, Mohamed (GE Energy)
Hi Folks, Is it possible to use raw sockets with ICS v5? I am using Delphi 2007 but each time I try to set this up, I get a failure when binding i.e. after invoking the Listen method. Thanks in advance -Mohamed -- To unsubscribe or change your settings for TWSocket mailing list please goto