Helo Wilfred !
You should first check the state of the component before posting the
message. If not ready then OnRequestdone will be fired again when
component is ready.
YES, it's helps !!! You should insert these check inside SmtpCli component !
Because without this check it's works buggy !
Francois PIETTE wrote:
It could work.
A first test seems to confirm that AcceptEx() using
pre-allocated sockets and an I/O completion port is
twice as fast as common Accept(). Only I still do not
get the peer address information thru GetAcceptExSockAddrs :(
On my slow 900 Mhz box I'm now able
I am converting a small remote logging project from Indy to ICS that
sends UDP packets. Following the example in UDPSend1.pas, I do the
following when I wish to send my string:
WSocket.Proto := 'udp';
WSocket.Addr := 'mydomain.com';
WSocket.Port := '12007';
WSocket.Connect;
Why not open the socket at the start, then just call WSocket.SendStr when
you want to send something.
Yes, you need to add #13#10 if your receiver needs it, calling SendStr does
not add this for you.
Dan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of
On 8/1/06, Dan [EMAIL PROTECTED] wrote:
Why not open the socket at the start, then just call WSocket.SendStr when
you want to send something.
I thought by leaving it open it might cause disconnection problems.
Can I just leave it open all the time and call Send() as needed. It
may be hours
There won't be any connection/disconnection problems because you are using
UDP. Calling connect on a UDP socket just sets up a default recipient for
the packets you send, no actual connection occurs.
Dan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of