MFC Networking Application.
-
Scenario: The application has 10 nodes connected in a network. each node can either act as server/client. At any given time there will be only one server and one client. My question is say for example if default server is down - then client application will poll the message to remaining nodes looking for server if not it will become server for remaining clients. So, how to poll message in a network using MFC.
-
Scenario: The application has 10 nodes connected in a network. each node can either act as server/client. At any given time there will be only one server and one client. My question is say for example if default server is down - then client application will poll the message to remaining nodes looking for server if not it will become server for remaining clients. So, how to poll message in a network using MFC.
You can use UDP broadcasting technique in that situation. Server should implements workerthread which calls UDP recvfrom and client calls UDP sendto when its default server is down. Notice; UDP broadcasting would not pass through the routers to different network, so machine nodes should be in the same network usually.
-
Scenario: The application has 10 nodes connected in a network. each node can either act as server/client. At any given time there will be only one server and one client. My question is say for example if default server is down - then client application will poll the message to remaining nodes looking for server if not it will become server for remaining clients. So, how to poll message in a network using MFC.
Very Well.