如何编写多线程套接字程序,以便能够ping一台PC以获得多个IP-Addressess? [英] How can I write multithread socket program so that I can able to ping a single PC for multiple IP-Addressess ?

查看:114
本文介绍了如何编写多线程套接字程序,以便能够ping一台PC以获得多个IP-Addressess?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的系统概述:我有一个应用软件,通过以太网与'N'个嵌入式机器进行通信。每台机器都有IP地址,MAC地址,机器ID和公共端口号(所有机器都相同)。所有机器都使用套接字编程与应用程序软件进行通信,并将数据上传到应用程序软件,应用程序软件将其存储在本地。



我的需要:N数字的Arraangement嵌入式机器对我来说很难,因此我想制作一个应该充当N嵌入式机器的模拟软件,并允许我测试我的应用软件!如何编写多线程套接字程序,以便我能够ping一个系统以获得多个IP-Addressess。我是一个更新鲜的链接,用于理解标准套接字编程或链接参考C#源代码对我来说是有用的。谢谢...

My system overview : I have an Application Software that communicates with 'N' Number of Embedded Machines over ethernet. Each machine has IP-Address, MAC-Address, Machine-ID and a common port number(same for all machines). All machines are communicating with application software using socket programming and uploading the data to the application software and the application software is storing it locally.

My need : Arraangement for N number of embedded machine is dificult for me and hence I want to make a simulation software that should act as N embedded machine and allow me to test my application software! How can I write a multithreaded socket program so that I should be able to ping a single system for multiple IP-Addressess. I am a fresher so link for understanding the standard socket programming or link for referece C# source code is helfull for me. Thank you...

推荐答案

这篇关于如何编写多线程套接字程序,以便能够ping一台PC以获得多个IP-Addressess?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆