通过TcpClient发送字符串 [英] Sending a string via TcpClient

查看:387
本文介绍了通过TcpClient发送字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你为什么要删除我的其他帖子?我不知道为什么=我可能会再次犯同样的错误



...无论如何。关于这个问题。



为了推翻允许自己通过TcpClient发送字符串的代码,我一直努力做高和低。



一个人是否宽容可以解除我的痛苦?



(任何工作代码都可以,评论是不必要的但是没问题如果你在代码中有他们的话)



非常感谢你们,如果你们都不报告我的帖子。如果你已经等了好几个月的代码,然后有人出现,嫉妒你聪明的话语,然后报告它,你会怎么样? :D

Why did you delete my other post? Me not knowing why = me maybe making the same mistake again

...anyway. To the question.

I have endeavoured high and low in order to overturn a code that will allow oneself to send a string via a TcpClient.

Would one be forgiving enough to free me of my misery?

(Any working code will do, comments are unneccessary but OK if you have them in the code)

Thanking you all muchly, should you all not report my posts. How would you like it if you have been waiting months for a code, then someone comes along, gets jealous of your clever wordiness, then reports it? :D

推荐答案

TcpClient上有很多例子。只需使用Google。



http://lmgtfy.com/?q=how+to+use+tcpclient+in+vb.net [ ^ ]



http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient。 aspx [ ^ ]



http://www.nullskull .com / articles / 20020323.asp [ ^ ]



基本是,您必须通过TCP / IP连接到服务。知道IP地址和TCP端口。

连接完成后,通常使用协议传输数据。



想一想作为水管,你把数据输入,然后在另一端出来。
There are tons of examples on TcpClient. Just use Google.

http://lmgtfy.com/?q=how+to+use+tcpclient+in+vb.net[^]

http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx[^]

http://www.nullskull.com/articles/20020323.asp[^]

The basic is, you have to connect to at a service via TCP/IP. Know the IP address and TCP port.
When the connection is made, you usually use a Protocol to transfer data.

Think of it as a water pipe, you put data in and it comes out in the other end.


这篇关于通过TcpClient发送字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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