在vb6中使用Winsock控件进行多套接字连接 [英] multiple socket connection using winsock control in vb6

查看:72
本文介绍了在vb6中使用Winsock控件进行多套接字连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

任何人都可以向我提供有关在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.

推荐答案

上帝,我这样做很肮脏.单击
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屋!

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