这听起来可能很疯狂,但是如果我两次运行相同的进程并且我想向接收者发送两次 UDP 消息,那么接收者就知道该进程在客户端上运行了两次。这可能吗?
'Count Process
Dim processCount As Integer = Process.GetProcessesByName("Putty").Count()
'Send Data
Dim client As New UdpClient()
Dim ip As New IPEndPoint(IPAddress.Broadcast, 15000)
Dim bytes As Byte() = Encoding.ASCII.GetBytes("GotPutty")
client.Send(bytes, bytes.Length, ip)
client.Close()
因此,如果 Process Count = 2,那么我将如何发送“GotPutty”两次?