文件名称:ServerProtSocket
介绍说明--下载内容均来自于网络,请自行研究使用
Components derived from TServerSocket and TClientSocket to implement a particular protocol. Function is based in defining a serie of valid protocol messages (TStrings) and responding to protocol events (messages of any of those valid types).
The idea is that every protocol message is a stream. You "start" communication by SendStream(PMess:string Stream:TStream), this will trigger a protocol event for that message that lets the receiver to respond by adding content to the output stream (of the event handler), if content is added to the answer, the result will be the same as if the receiver had SendStream() with the same message.
This way any protocol can be implemented in a simpler way than using raw TClientSocket and TServerSocket.
The idea is that every protocol message is a stream. You "start" communication by SendStream(PMess:string Stream:TStream), this will trigger a protocol event for that message that lets the receiver to respond by adding content to the output stream (of the event handler), if content is added to the answer, the result will be the same as if the receiver had SendStream() with the same message.
This way any protocol can be implemented in a simpler way than using raw TClientSocket and TServerSocket.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ServerProtSocket.pas