Re: [twsocket] OnSessionClosed not always triggered

2006-03-19 Thread Wilfried Mestdagh
Hi Dod,

Did some additional research. If you wants to use TWSocketClient instead
of TWSocket to initiate a connection, then you have to set
FSessionClosedFlag := False; in the OnSessionClosed event. If you do not
then OnSessionClosed will not trigger a second time.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Sunday, March 19, 2006, 19:03, Wilfried Mestdagh wrote:

 Hello Dod,

 In  the  SessionClosed  I  start  a  Timer that will send a message 20
 second later to retry a .Connect, but this new try will only produce a
 OnSessionConnected not followed by a SessionClosed, any idea why ?

 I examined the project that demonstrate the problem. The client you use
 is derived from TWSocketClient instead of TWSocket. If you change it to
 TWSocket the connect / closed works every time. TWSocketClient's
 OnSessionClose is normally handled by TWSocketServer, so that's the
 reason your OnSessionClose does not trigger.

 I'm not sure wy it is fired the first time. This make it confusing.

 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz

 Saturday, March 18, 2006, 14:01, Dod wrote:

 Hello,

 I  am  actually  doing  some crash test on my server to handle as many
 situations as possible.

 I have a problem in a failed socket .Connect

 I  create  a  few  sockets to .Connect them to some remote points. The
 .Connect  will excecute and fail because there is nothing listening on
 destination  (this  is  wanted  situation  to  test my auto re-connect
 feature).

 The  failure  to  connect will trigger a OnSessionConnected event with
 Error 10061 followed by a SessionClosed.

 In  the  SessionClosed  I  start  a  Timer that will send a message 20
 second later to retry a .Connect, but this new try will only produce a
 OnSessionConnected not followed by a SessionClosed, any idea why ?

 But may be it is the first OnSessionClosed that should never happend ?

 2006/03/17 18:29:39 ! OutgoingConnectorSessionConnected
 [EMAIL PROTECTED]:5433 (10061 Connection refused)
 2006/03/17 18:29:39 ! OutgoingConnectorSessionClosed
 [EMAIL PROTECTED]:5433 (0 No Error)
 2006/03/17 18:29:39 ! OutgoingConnectorSessionConnected
 [EMAIL PROTECTED]:5434 (10061 Connection refused)
 2006/03/17 18:29:39 ! OutgoingConnectorSessionClosed
 [EMAIL PROTECTED]:5434 (0 No Error)
 2006/03/17 18:29:52 ! OutgoingConnectorSessionConnected
 [EMAIL PROTECTED]:5433 (10061 Connection refused)
 2006/03/17 18:29:53 ! OutgoingConnectorSessionConnected
 [EMAIL PROTECTED]:5434 (10061 Connection refused)



-- 
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.overbyte.be


[twsocket] New ICS-V6 beta uploaded

2006-03-19 Thread Francois PIETTE
A new ICS-V6 beta is ready.
- I made it to the same level as ICS-B5, that is I added HTTP server 
authentication support that was made into V5. Also updated corresponding 
OverbyteIcsWebServ demo.
- I converted SMTP client component and made OverbyteIcsMailSnd demo.

Please give it a try ! This version will replace ICS-V5 in a future not so 
far than you can think :-)

--
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.overbyte.be


[twsocket] It's time to make ICS-V5 last release

2006-03-19 Thread Francois PIETTE
I plan to release ICS-V5. That is make the current ICS-V5 beta as the 
released version.
Anyone have trouble with that ?

My idea is that this ICS-V5 release will be the last V5 release. Only bug 
fixes will be done on that version. All new features will be added to V6 
only.

--
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.overbyte.be


Re: [twsocket] It's time to make ICS-V5 last release

2006-03-19 Thread Pawel (WP)
Hi
Great, but when I tried to install latest version of  ICS v5 (Mar 09, 2006)) 
for Delphi 2005 I could't compile it and install...
What I do:
1. Removing all dcu (obj) files from vc32 and internet directory.
2. Opening IcsDel90.bdsproj file
3. Compiling this... I got errors.
  - in HttpContCod unit -
[Error] HttpContCod.pas(86): E2356 Property accessor must be an instance 
field or method
[Error] HttpContCod.pas(87): E2356 Property accessor must be an instance 
field or method
[Error] HttpContCod.pas(85): E2065 Unsatisfied forward or external 
declaration: 'THttpContentCoding.WriteBuffer'
[Fatal Error] HttpProt.pas(439): F2063 Could not compile used unit 
'HttpContCod.pas'

What I have to do? Could You fix this?
Thanks
Pawel Porwisz
--


- Original Message - 
From: Francois PIETTE [EMAIL PROTECTED]
To: twsocket@elists.org
Sent: Sunday, March 19, 2006 8:06 PM
Subject: [twsocket] It's time to make ICS-V5 last release


I plan to release ICS-V5. That is make the current ICS-V5 beta as the
 released version.
 Anyone have trouble with that ?

 My idea is that this ICS-V5 release will be the last V5 release. Only bug
 fixes will be done on that version. All new features will be added to V6
 only.

 --
 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.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.overbyte.be


Re: [twsocket] OnSessionClosed not always triggered

2006-03-19 Thread Dod
Hello Wilfried,

Yes,  I  came  to  same conclusion too when you told me it worked fine
with  TWSocket.  Now  I  simply  set  FSessionClosedFlag:=False before
calling   .Connect   again   and  all  is  fine.  I  also  added  some
FConnectDidError:=ErrCode in OnSessionConnected sowhen
OnSessionClosed  is  called  I test OnSessionClosed's ErrCode and also
FConnectDidError  then if one of them 0 then I set Timer to make new
.Connect some seconds later.

But I am still looking how to add the reverse connected TWSocketClient
into the main TWSocketServer client's list.

Actually  once  reverse'd  TWSocketClient  is  connected I set it same
OnDataAvailable/OnDataSent as other standard TWSocketServer clients as
only connection and disconnection have to be handled differently.

Regards.

WM Did some additional research. If you wants to use TWSocketClient instead
WM of TWSocket to initiate a connection, then you have to set
WM FSessionClosedFlag := False; in the OnSessionClosed event. If you do not
WM then OnSessionClosed will not trigger a second time.

WM ---
WM Rgds, Wilfried [TeamICS]
WM http://www.overbyte.be/eng/overbyte/teamics.html
WM http://www.mestdagh.biz

WM Sunday, March 19, 2006, 19:03, Wilfried Mestdagh wrote:

 Hello Dod,

 In  the  SessionClosed  I  start  a  Timer that will send a message 20
 second later to retry a .Connect, but this new try will only produce a
 OnSessionConnected not followed by a SessionClosed, any idea why ?

 I examined the project that demonstrate the problem. The client you use
 is derived from TWSocketClient instead of TWSocket. If you change it to
 TWSocket the connect / closed works every time. TWSocketClient's
 OnSessionClose is normally handled by TWSocketServer, so that's the
 reason your OnSessionClose does not trigger.

 I'm not sure wy it is fired the first time. This make it confusing.

 ---
 Rgds, Wilfried [TeamICS]
 http://www.overbyte.be/eng/overbyte/teamics.html
 http://www.mestdagh.biz

 Saturday, March 18, 2006, 14:01, Dod wrote:

 Hello,

 I  am  actually  doing  some crash test on my server to handle as many
 situations as possible.

 I have a problem in a failed socket .Connect

 I  create  a  few  sockets to .Connect them to some remote points. The
 .Connect  will excecute and fail because there is nothing listening on
 destination  (this  is  wanted  situation  to  test my auto re-connect
 feature).

 The  failure  to  connect will trigger a OnSessionConnected event with
 Error 10061 followed by a SessionClosed.

 In  the  SessionClosed  I  start  a  Timer that will send a message 20
 second later to retry a .Connect, but this new try will only produce a
 OnSessionConnected not followed by a SessionClosed, any idea why ?

 But may be it is the first OnSessionClosed that should never happend ?

 2006/03/17 18:29:39 ! OutgoingConnectorSessionConnected
 [EMAIL PROTECTED]:5433 (10061 Connection refused)
 2006/03/17 18:29:39 ! OutgoingConnectorSessionClosed
 [EMAIL PROTECTED]:5433 (0 No Error)
 2006/03/17 18:29:39 ! OutgoingConnectorSessionConnected
 [EMAIL PROTECTED]:5434 (10061 Connection refused)
 2006/03/17 18:29:39 ! OutgoingConnectorSessionClosed
 [EMAIL PROTECTED]:5434 (0 No Error)
 2006/03/17 18:29:52 ! OutgoingConnectorSessionConnected
 [EMAIL PROTECTED]:5433 (10061 Connection refused)
 2006/03/17 18:29:53 ! OutgoingConnectorSessionConnected
 [EMAIL PROTECTED]:5434 (10061 Connection refused)

-- 
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.overbyte.be


[twsocket] which ip is used ...

2006-03-19 Thread [EMAIL PROTECTED]


I have a small question.

How can I find which ip I use when connecting to server?
I have several IP's configured on my laptop and a Sendfile client. I configure 
the server on another machine to listen to port 2 and the rx/tx works fine. 
But how can I find which is my local ip the sendfile event is triggered ?

Thx

Radu



___
No banners. No pop-ups. No kidding.
Make My Way  your home on the Web - http://www.myway.com


-- 
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.overbyte.be


Re: [twsocket] which ip is used ...

2006-03-19 Thread Wilfried Mestdagh
Hello iwsc,

Use GetXAddr method. It returns the local address to witch the socket
has been bound. If you wants to know it from the other side you can use
PeerAddr property.

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

Monday, March 20, 2006, 05:38, [EMAIL PROTECTED] wrote:



 I have a small question.

 How can I find which ip I use when connecting to server?
 I have several IP's configured on my laptop and a Sendfile client.
 I configure the server on another machine to listen to port 2 and
 the rx/tx works fine. But how can I find which is my local ip the
 sendfile event is triggered ?

 Thx

 Radu



 ___
 No banners. No pop-ups. No kidding.
 Make My Way  your home on the Web - http://www.myway.com



-- 
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.overbyte.be