Problem regarding server client connection

Posted by Dipu710646 under C# on 2/22/2011 | Points: 10 | Views : 849 | Status : [Member] | Replies : 9
Hello All,

I have a serious problem.

I have two windows application- server and client.

In server I want to show the status of the application
Connected
Disconnected

client will connect to the server for data and get it from server.

I tried to do that by asynchronous callback.But it did not work.

Please help.

Thanks,
Dipankar




Responses

Posted by: Madhu.b.rokkam on: 2/22/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
In server you want to show the status of Client or Server itself ??

Thanks and Regards
Madhu

Dipu710646, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dipu710646 on: 2/22/2011 [Member] Starter | Points: 25

Up
0
Down

I want to show the status of client in the server .

Let say client has opened the application.It should be shown in server that "Connected".If client closed the application, it should show "Disconnected" and so on..


How will I do that ?

Dipu710646, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/22/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

What is the mode you are doing this connected architecture? can you post your requirement in brief?

Thanks
Karthik
www.f5Debug.net

Dipu710646, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 2/22/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
When ever you try to access some server object raise an event that would show the connected message and when its done show message as disconnected.

Thanks and Regards
Madhu

Dipu710646, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Dipu710646 on: 2/22/2011 [Member] Starter | Points: 25

Up
0
Down

Thanks guys for ur reply.

Here is the requirement.

It is a windows based application.

One insatance will behave as server and other will be client.

Server will be able to monitor the status of the client application and transferring data.

Whenever slient open the application it should be visible in server that application is connected along with the form name and the corresponding port number.

whenever client close the application, it should be shown in the server that the client is disconnected.

Sounds good?

Thanks,
Dipankar

Whenever

Dipu710646, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/23/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
WCF will be best option for this.... y cant u try WCF?

Thanks
Karthik
www.f5Debug.net

Dipu710646, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 2/23/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Yup, WCF will ease your work too.


Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Dipu710646, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Finalmoon on: 2/23/2011 [Member] Starter | Points: 25

Up
0
Down
I have written an article in "code project". In my article, I introduced how to make a connection. You can view:
http://www.codeproject.com/KB/cs/Excel_PDF_Word_ExportWiz.aspx

e-iceblue

Dipu710646, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 2/23/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Yes Dipu.. WCF is best suited for your requirement.

Where you can have couple of service methods which would be called on load and and on unload of the client application to let the server know that the client is connected or disconnected.


Thanks and Regards
Madhu

Dipu710646, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response