Print Page | Close Window

MFC based Client Server Applicatio Query?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=1868
Printed Date: 03 May 2024 at 8:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MFC based Client Server Applicatio Query?
Posted By: Davinder
Subject: MFC based Client Server Applicatio Query?
Date Posted: 28 February 2005 at 12:48am
Hi experts
This is my first experience with Sockets Programming.
I am purely using MFC on both sides --
Server(Dialog based application with 3 buttons <Start server, Send data & shutdown server>).
The client application is an Windows explorer type MFC SDI application.

After the connection is established & when the <Send data> button is clicked on the server side, names of all the folders in C:\ is send one by one to the client for display in the tree view.

Now i have 2 questions to ask:

Q1--> How can i make sure that the Port No. that i will provide in the Create() will be to create socket on each & every system?


Q2--> Now suppose the data ie folder names are being send from server to client & in the mean time i purposely pulls out the
network cable. Now under such circumstances how wud the client know that the connection with the server is disrupted & no more data transfer cud take place?

waiting for suggestions

Regards



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net