MFC based Client Server Applicatio Query? |
Post Reply |
Author | |
Davinder
Newbie Joined: 28 February 2005 Status: Offline Points: 1 |
Post Options
Thanks(0)
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |