在vb6中使用Winsock控件进行多套接字连接 [英] multiple socket connection using winsock control in vb6
问题描述
大家好,
任何人都可以向我提供有关在vb6中使用Winsock控件使用多个套接字连接的链接或文章.
----------------更新----------------------
我知道了如何使用套接字连接.
现在我有问题.
我们正在使用Winsock控件连接到IP地址为192.168.1.1
的外部程序
现在我们需要在端口25000上与该控件进行对话
可以,因为我们连接到同一端口
Hello All,
Can anybody provide me a link or article on using multiple socket connection using winsock control in vb6.
----------------Update----------------------
I got how to use socket connection.
Now i have a problem.
We are using Winsock control to connect to external program whose ip address let’s say 192.168.1.1
Now we need to talk with that control on port 25000
This is fine as we are connected to the same port
TCPClient.RemoteHost = ''192.168.1.1''
TCPClient.RemotePort = 25000
TCPClient.Connect
但是同时,外部编程器正在端口25001上广播一些消息,
我们如何使用相同的Winsock或其他方法来监听该端口(我们不需要仅向该端口发送数据).
----------------更新----------------------
谢谢,
Nagendra.
But at the same time external programmer is broadcasting some messages on port 25001 ,
how can we listen to that port ( we don’t need to send data to this port only listen ) using the same winsock or there is any other method.
----------------Update----------------------
Thanks,
Nagendra.
推荐答案
上帝,我这样做很肮脏.单击 ^ ]并开始阅读.
以任何方式,形状或形式支持VB6都使我需要洗个澡.我完全不能接受为什么任何人仍在用VB6编写代码.它已经死了很久,不受支持.哦,您将在Windows 8中找不到对VB6运行时的支持.
God, I feel so filthy doing this. CLick this[^] and start reading.
Supporting VB6 in any way, shape, or form leaves me needing a shower. I just cannot accept, at all, why ANYONE is still writing code in VB6. It''s long dead and unsupported. Oh, and you won''t find support for the VB6 runtime in Windows 8.
这篇关于在vb6中使用Winsock控件进行多套接字连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!