delphi tcp ip文件服务器,TCP/IP DELPHI&INDY10 CLIENT SERVER DEMO

INDY 10 CLIENT SERVER DEMO

-----------------------------

* use SVN to download the latest code version

* working with INDY 10 - DELPHI 2010, XE , DELPHI XE 2

* a demo project on source forge

Note #6 July 2012

-------------------

It is not GENERIC or INDY !!! I did not read the INDY instruction in detail and recognize

the VCL is NOT TREAD SAFE!!! This is well known.

Please remove all VCL command in my server.execute sample -> this is the correct way !!!!

If I find a time slot I will change also the sample

Note #5 June 2012

-------------------

Please use only the NO GENRIC SAMPLES in your own application- Guess still something is wrong with GENERICS

and INDY. We will solve that issue now!

Note #4 April 2012

-------------------

meanwhile lot of new samples are added, only sample #3 (complex demo keeps me in trouble)

pls. post some notes in the forum about future code improvements ...

did someone get sample 3 running ... pls. leave a note

Note #3 March 2012

----------------------

01.03.2012 :

I crashed the SVN , now I did a reset of the complete repository ,

Load old file with bugs, revision < 75 or wait for upload of the new ones

06.03.2012 : Upload of new code is ongoing ... please come back for final version of demo code

Note #2 NOVEMBER 2011

-------------------------

some code has been lost , try to recover to missing stuff

evaluate DELPHI XE2 x64 programs with INDY 10

if there is no better place on the web for INDY10 TCP Server demo code,

still looking for people willing to support the demo projects

Note #1 18.03.2011

--------------------------

this is not the latest code base, sorry , latest one is on source forge-SVN file section

Note #0 18.09.2010

--------------------------

the *.zip file with all the code is no longer distributed

use SVN & tortoise instead of it

Source: Readme_INDY_10.txt, updated 2012-07-03

本例子就是Delphi中如何利用Socket编写通信程序。 计算机网络是由一系列网络通信协议组成的,其中的核心协议是传输层的TCP/IP和UDP协议。TCP是面向连接的,通信双方保持一条通路,好比目前的电话线,使用telnet登陆BBS,用的就是TCP协议;UDP是无连接的,通信双方都不保持对方的状态,浏览器访问Internet时使用的HTTP协议就是基于UDP协议的。TCP和UDP协议都非常复杂,尤其是TCP协议,为了保证网络传输的正确性和有效性,必须进行一系列复杂的纠错和排序等处理。   Socket是建立在传输层协议(主要是TCP和UDP)上的一种套接字规范,最初是由美国加州Berkley大学提出,它定义两台计算机间进行通信的规范(也是一种编程规范),如果说两台计算机是利用一个“通道“进行通信,那么这个“通道“的两端就是两个套接字。套接字屏蔽了底层通信软件和具体操作系统的差异,使得任何两台安装了TCP协议软件和实现了套接字规范的计算机之间的通信成为可能。   微软的Windows Socket规范(简称winsock)对Berkley的套接字规范进行了扩展,利用标准的Socket的方法,可以同任何平台上的Socket进行通信;利用其扩展,可以更有效地实现在Windows平台上计算机间的通信。在Delphi中,其底层的Socket也应该是Windows的Socket。Socket减轻了编写计算机间通信软件的难度,但总的说来还是相当复杂的(这一点在后面具体会讲到);Inprise在Delphi中对Windows Socket进行了有效的封装,使得用户可以很方便地编写网络通信程序。 本例子就是Delphi中如何利用Socket编写通信程序。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值