如何在两台电脑之间发送字符串? [英] How can I send strings between two computers?

查看:209
本文介绍了如何在两台电脑之间发送字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

Delphi网络的初学者


我想学习如何使两台机器进行通信,发送和接收简单的字符串。机器可能在同一个局域网 - 不是。我在谈论一些或多或少的东西,就像你在聊天程序中看到的,我想。我理解德尔福,但是绝对没有任何关于TCP,套接字,端口等的信息。你会建议我在哪里学习这些东西? ...我知道如何使用谷歌,但老实说,我不完全确定哪里开始搜索!



谢谢,一如既往。

解决方案

为了学习如何通过套接字沟通最好的文章IMO:



< a href =http://www.felix-colibri.com/papers/web/socket_programming/socket_programming.html =nofollow> http://www.felix-colibri.com/papers/web/socket_programming/ socket_programming.html

http:/ /www.felix-colibri.com/papers/web/delphi_socket_architecture/delphi_socket_architecture.html
(它在套接字级别解释你的情况如何)





http://delphi.about.com/od/networking/l/aa112602a.htm



作为此亲属的起始者我建议你还 http://delphi.about.com 这是一个很好的资源。 p>

在您了解完好的概念之后,您可以进入下一级,并使用 Indy 或任何其他使您的生活更轻松的组件。


Possible Duplicate:
Beginner for Delphi Network!

I'd like to learn how to make two machines communicate, sending and receiving simple strings. The machines might be on the same LAN--or not. I'm talking about something more or less like you'd see in a chat program, I suppose. I understand Delphi, but know absolutely nothing about things like TCP, sockets, ports, etc. Where would you suggest I look to learn these things? ... I know how to use google but, honestly, I'm not totally sure even where to start the search!

Thanks, as always.

解决方案

for learning how to communicate through sockets the best articles IMO are:

http://www.felix-colibri.com/papers/web/socket_programming/socket_programming.html
http://www.felix-colibri.com/papers/web/delphi_socket_architecture/delphi_socket_architecture.html (it explain you at a socket level how things are going on)

and

http://delphi.about.com/od/networking/l/aa112602a.htm

as a starter for this kind of things I suggest you also http://delphi.about.com which is a very good resource.

After you understand very well the concepts then you can go to next level and use Indy, or any other components which make your life easier.

这篇关于如何在两台电脑之间发送字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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