| 使用indy的IdTcpServer,IdTcpclient传输文件 |
| 当前位置: 论文资料 >> 计算机论文 >> 计算机应用 >> 使用indy的IdTcpServer,IdTcpclient传输文件 | ||
| 使用indy的IdTcpServer,IdTcpclient传输文件 | ||||
|
Delete(CmdStr,1,6); Password := DecryptString(CmdStr,20504); //CmdStr; if CompareStr(Password,'123abc')=0 then begin Memo1.Lines.Add('Login..........Accepted'); Memo1.Lines.Add('Connected......'+DateTimeToStr(Now)); CmdStr := ''; AThread.Connection.WriteLn('<Accepted>'); end else begin Memo1.Lines.Add('Password Wrong...Login Failure'); AThread.Connection.WriteLn('<Failed>'); CmdStr :=''; AThread.Connection.Disconnect; end; end; //4 end; 主要发送部分 |
||||
|
|
||||
| 相关文章列表: | |||