Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - MFC based Client Server Applicatio Query?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MFC based Client Server Applicatio Query?

 Post Reply Post Reply
Author
Message
Davinder View Drop Down
Newbie
Newbie


Joined: 28 February 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Davinder Quote  Post ReplyReply Direct Link To This Post Topic: MFC based Client Server Applicatio Query?
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.