Click here to Skip to main content
15,867,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have developed MFC dialog based application to connect 2 ethernet machines to PC using "CAsyncSocket" class. Data is sent on Ethernet port every 3 seconds. 20 string(max 25 Characters) in a minute by 1 machine So total 40 strings to be received by the software in a minute. This software is working fine.

New requirement:
Now we want to add 7 more(total 9) Ethernet machines to the same PC. Data is sent by 1 scale is 20 transaction in a minute. So total 180 transactions(20 transaction x9 machine=180) in minute to be sent to PC.

My area of concern is as below:
1. Is it possible to connect 9 machine to single PC? If we cannot connect 9 machine on 1 PC then what is the maximum machines which can be connected to single PC.
2. Is there any data loss if 180 string of data in minute? Will it depend upon the distance where the machines are kept?
3. How do I simulate the testing of 9 machine data on single PC without any data loss.


Regards,

Dipti
Posted

1 solution


  1. It's possible to connect some machines to a single PC directly (if you have enough communication cards) or, via the network.
  2. As I know, the TCP/IP protocol is responsible for ensuring the send of the data. 180 strings of 25 characters in a minute, aren't such a lot of data...
  3. You can simulate some machines on the same PC by running some processes that are connected to localhost (127.0.0.1).
 
Share this answer
 
Comments
diptipanchal 9-Mar-15 2:19am    
Sorry I forgot to mention that all machines are connected through Ethernet switch.

I was thinking how 9 CAsyncSocket socket class will respond to each data on single PC. Will there be any probability of data loss?

Any impact on data if machines are kept at 50m away from PC?
Shmuel Zang 9-Mar-15 2:42am    
You can open a socket for each connection. There shouldn't be a problem with that.
diptipanchal 9-Mar-15 2:45am    
How many maximum sockets can we open?
Shmuel Zang 9-Mar-15 2:54am    
That's an another question. I googled for "max sockets windows". That's what I found: https://msdn.microsoft.com/en-us/library/windows/desktop/ms739169(v=vs.85).aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900