Delphi Datasnap-XE:如何实用地设置过滤器?
我正在使用以下代码来实用地设置 DataSnap 连接
procedure TConnectThreed.Execute;
var
DataSnapCon : TSQLConnection;
proxy : TSystemRDMClient;
begin
proxy := nil;
DataSnapCon := nil;
try
DataSnapCon := TSQLConnection.Create(nil);
DataSnapCon.Connected := False;
DataSnapCon.DriverName := 'DATASNAP';
DataSnapCon.LoginPrompt := False;
DataSnapCon.Params.Values['port'] := '211';
DataSnapCon.Params.Values['HostName'] := DevicesAddr;
//
// What code must be added here to setup a Zlib + PC1 +RSA Filter ?
//
try
DataSnapCon.Open;
proxy := TSystemRDMClient.Create(DataSnapCon.DBXConnection);
问题:
如何设置 Zlib 和 Zlib? PC1& RSA 过滤实用吗?
I am using the following code to setup DataSnap Connection pragmatically
procedure TConnectThreed.Execute;
var
DataSnapCon : TSQLConnection;
proxy : TSystemRDMClient;
begin
proxy := nil;
DataSnapCon := nil;
try
DataSnapCon := TSQLConnection.Create(nil);
DataSnapCon.Connected := False;
DataSnapCon.DriverName := 'DATASNAP';
DataSnapCon.LoginPrompt := False;
DataSnapCon.Params.Values['port'] := '211';
DataSnapCon.Params.Values['HostName'] := DevicesAddr;
//
// What code must be added here to setup a Zlib + PC1 +RSA Filter ?
//
try
DataSnapCon.Open;
proxy := TSystemRDMClient.Create(DataSnapCon.DBXConnection);
QUESTION:
How do I setup a Zlib & PC1 & RSA filter pragmatically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您查看 dfm 文件,您会看到对象检查器中神奇的 Driver 属性发生了什么。您所做的选择存储在名称过滤器的
TSQLConnection.Params
中。要添加过滤器,您可以这样做。
但这仍然会得到您在这里经历过的
连接优雅地关闭
Delphi XE – Datasnap 过滤器问题。If you have a look at the
dfm
file you see what is going on with the magic Driver property in the Object Inspector. The selections you make are stored inTSQLConnection.Params
for name Filters.To add the filters you can do this.
But this will still get
Connection Closed Gracefully
that you have experienced here Delphi XE – Datasnap Filter problems.