如何通过VB.NET中的tcpclient检索数据? [英] How do I retrieve data via a tcpclient in VB.NET?

查看:66
本文介绍了如何通过VB.NET中的tcpclient检索数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我一直在研究VB.NET中的TcpClients和TcpListeners。我的理解是TcpClient是出站的,而TcpListener是入站的(如果我没记错的话)。这对我来说是一个新的领域,我现在也不了解它。现在,假设是这种情况,我如何使用TcpClient从另一台运行使用TcpListener的程序的计算机中检索数据?



要清楚,使用TcpClient从远程主机返回信息。



谢谢,

iProgramIt。



我尝试了什么:



通过微软的网站查看,但有点困惑。

解决方案

TCP / IP聊天程序 [ ^ ]

Hello all,

I've been looking into TcpClients and TcpListeners in VB.NET. My understanding is that the TcpClient is outbound and the TcpListener is inbound (if I'm not mistaken). This is new territory for me, and I fail to understand much of it right now. Now, assuming this is the case, how would I use a TcpClient to retrieve data from another computer running a program that utilises a TcpListener?

To be clear, using a TcpClient to RETURN information from a remote host.

Thanks,
iProgramIt.

What I have tried:

Looked through Microsoft's website but got a little bit confused.

解决方案

A TCP/IP Chat Program[^]


这篇关于如何通过VB.NET中的tcpclient检索数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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