Hello:
Ok, now that I'm switching to TWSocketServer, my
original question stands. Since all clients will run
within the same thread context, then would it be safe
to send the disconnect notice like Wilfried
originally suggested? For example:
Procedure WorkerThread.Execute;
Begin
_InitializeSrv(); // create
Try
Srv.MessageLoop();
Finally
Try
// Should this be Shutdown(1)?
Srv.Close(); // Stop listening...
For n := 0 to (Srv.ClientCount - 1) Do Begin
Srv.Clients[n].SendStr('bye'#13#10);
// do we need this? or should we
// wait until Srv.Free below?
Srv.Clients[n].ShutDown(1);
End;
Finally
Srv.Free;
End;
End;
End;
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