L
localboy
Unregistered / Unconfirmed
GUEST, unregistred user!
小弟用delphi做了个组件,里面用到了tclientsocket,另外在服务器端有个serversocket,
源码如下
function Torderclient.sendorder: Integer;
var dm:tdatamodule;
cs:tclientsocket;
begin
dm:=tdatamodule.Create (nil);
cs:=tclientsocket.Create (dm);
cs.Address:='12.104.72.221';
cs.Port :=9090;
cs.Active:=true ;
if cs.Socket.Connected then
result:=9999
else
result:=7777;
我在测试时发现,我通过ASP调用组件时,服务器端显示是连接成功的,
但是返回的结果却是7777,即cs.Socket.Connected为false,
请教各位大虾!不胜感激!
源码如下
function Torderclient.sendorder: Integer;
var dm:tdatamodule;
cs:tclientsocket;
begin
dm:=tdatamodule.Create (nil);
cs:=tclientsocket.Create (dm);
cs.Address:='12.104.72.221';
cs.Port :=9090;
cs.Active:=true ;
if cs.Socket.Connected then
result:=9999
else
result:=7777;
我在测试时发现,我通过ASP调用组件时,服务器端显示是连接成功的,
但是返回的结果却是7777,即cs.Socket.Connected为false,
请教各位大虾!不胜感激!