Board index » cppbuilder » Cloud the server close a client connection?

Cloud the server close a client connection?

I have a DCOM server that has many clients over a
network. If there is a problem with the network how can the server to close a client connection?

Thanks.

JDG

 

Re:Cloud the server close a client connection?


JDG,

If I understood your situation correctly...

Simply if the Server shuts down immediately, the Clients are all still
active, and can still function normally. Although with this philosophy, the
clients can experience adverse effects.
But a good way is to have the server notify all the clients before shutting
down.  This can be done by firing events to all the clients beforehand so
that the clients can react by not calling your server any longer. Firing
events is another learning curve, so read up on this subject.

Tom

Juan Diego Garcs <daes_ch....@bluemail.ch> wrote in message
news:3b3c5f21$1_1@dnews...

Quote

> I have a DCOM server that has many clients over a
> network. If there is a problem with the network how can the server to

close a client connection?
Quote

> Thanks.

> JDG

Re:Cloud the server close a client connection?


In a normal shut down I send to each client a message (event) and the client cuts the connection with the server, this works fine.

The problem comes if the network has a problem and the server can't send to each client the message to notify. after this if I try to close the server it shows a message to say that there are clients connected with the server. I want to avoid that, so I want to close each client connection from the server and thus the close method will work fine.

Juan Diego Garcs

Quote
"Tom K." <tk...@socal.rr.com> wrote:
>JDG,

>If I understood your situation correctly...

>Simply if the Server shuts down immediately, the Clients are all still
>active, and can still function normally. Although with this philosophy, the
>clients can experience adverse effects.
>But a good way is to have the server notify all the clients before shutting
>down.  This can be done by firing events to all the clients beforehand so
>that the clients can react by not calling your server any longer. Firing
>events is another learning curve, so read up on this subject.

>Tom

Other Threads