[twsocket] TWSocketThrdServer graceful shutdown

2007-09-28 Thread [EMAIL PROTECTED]
Hello:
 I using TWSocketThrdServer in a server
application and was wondering if there is a
recommended method to call for a graceful shutdown --
one that will stop listening when all current
connections are completed.

 Thanks,
 -dZ.

-- 
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] TWSocketThrdServer graceful shutdown

2007-09-28 Thread Wilfried Mestdagh
Hello dz,

Just call Close method. server will stop listening. Note that calling
Close will not stop current connections, it only stops listening.

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

Friday, September 28, 2007, 17:44, [EMAIL PROTECTED] wrote:

 Hello:
  I using TWSocketThrdServer in a server
 application and was wondering if there is a
 recommended method to call for a graceful shutdown --
 one that will stop listening when all current
 connections are completed.

  Thanks,
  -dZ.


-- 
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] TWSocketThrdServer graceful shutdown

2007-09-28 Thread Arno Garrels
[EMAIL PROTECTED] wrote:
 Hello:
  I using TWSocketThrdServer in a server
 application and was wondering if there is a
 recommended method to call for a graceful shutdown --
 one that will stop listening when all current
 connections are completed.

Call Close, that just stops listening, doesn't disconnect
connected clients, if that's what you mean.

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html




-- 
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] TWSocketThrdServer graceful shutdown

2007-09-28 Thread [EMAIL PROTECTED]
Thanks Wilfried. Close() will do it.

What then does Shutdown(x) do?  I see that Close()
calls it with an argument of 1 (SD_SEND), which
according to a comment is for graceful close.  Does
it stop sending data?

  -dZ.



--- Original Message ---
From: Wilfried
Mestdagh[mailto:[EMAIL PROTECTED]
Sent: 9/28/2007 12:03:57 PM
To  : twsocket@elists.org
Cc  : 
Subject : RE: Re: [twsocket] TWSocketThrdServer
graceful shutdown

 Hello dz,

Just call Close method. server will stop listening.
Note that calling
Close will not stop current connections, it only
stops listening.

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

Friday, September 28, 2007, 17:44, [EMAIL PROTECTED] wrote:

 Hello:
  I using TWSocketThrdServer in a server
 application and was wondering if there is a
 recommended method to call for a graceful shutdown --
 one that will stop listening when all current
 connections are completed.

  Thanks,
  -dZ.


-- 
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] TWSocketThrdServer graceful shutdown

2007-09-28 Thread Wilfried Mestdagh
Hello Arno,

 Most likely Wilfried is faster again ;-)

most of the time you are faster :)

---
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/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocketThrdServer graceful shutdown

2007-09-28 Thread Arno Garrels
[EMAIL PROTECTED] wrote:
 Thanks Wilfried. Close() will do it.
 
 What then does Shutdown(x) do?  I see that Close()
 calls it with an argument of 1 (SD_SEND), which
 according to a comment is for graceful close.  Does
 it stop sending data?


Most likely Wilfried is faster again ;-)
Shutdown() initiates a bidirectional shutdown procedure of a
connection, the listening socket however has no connection,
so calling TWSocketServer.Close is fine.
Call Shutdown(1) on the client socket when all data has been
sent (OnDataSent), it disables subsequent sends on the socket,
however data still pending in winsock buffer will be sent 
nevertheless.

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
 
 
 
 --- Original Message ---
 From: Wilfried
 Mestdagh[mailto:[EMAIL PROTECTED]
 Sent: 9/28/2007 12:03:57 PM
 To  : twsocket@elists.org
 Cc  :
 Subject : RE: Re: [twsocket] TWSocketThrdServer
 graceful shutdown
 
  Hello dz,
 
 Just call Close method. server will stop listening.
 Note that calling
 Close will not stop current connections, it only
 stops listening.
 
 ---
 Rgds, Wilfried [TeamICS]
  http://www.overbyte.be/eng/overbyte/teamics.html
  http://www.mestdagh.biz
 
 Friday, September 28, 2007, 17:44, [EMAIL PROTECTED] wrote:
 
 Hello:
  I using TWSocketThrdServer in a server
 application and was wondering if there is a
 recommended method to call for a graceful shutdown --
 one that will stop listening when all current
 connections are completed.
 
  Thanks,
  -dZ.
 
 
 --
 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] TWSocketThrdServer graceful shutdown

2007-09-28 Thread Arno Garrels
Wilfried Mestdagh wrote:
 Hello Arno,
 
 Most likely Wilfried is faster again ;-)
 
 most of the time you are faster :)

Isn't this list great? Where else do you get faster support for
free software? g

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

-- 
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] TWSocketThrdServer graceful shutdown

2007-09-28 Thread Wilfried Mestdagh
Friday, September 28, 2007, 20:36, Arno Garrels wrote:

 Wilfried Mestdagh wrote:
 Hello Arno,
 
 Most likely Wilfried is faster again ;-)
 
 most of the time you are faster :)

 Isn't this list great? Where else do you get faster support for
 free software? g

Indeed. Sometime I have the feeling we are all friends in this community
helping each other ! This really give a good feeling :)

-- 
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] TWSocketThrdServer graceful shutdown

2007-09-28 Thread [EMAIL PROTECTED]
--- Original Message ---
From: Arno Garrels[mailto:[EMAIL PROTECTED]

 Isn't this list great? Where else do you get faster
support for
 free software? g

Yes, it is.  Thank you both for your quick responses.

 -dZ.

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