捐赠 | 广告 | 注册 | 发布 | 上传 | 关于我们    
  粤ICP备10103342号-1 DELPHI盒子 | 盒子文章 | 盒子问答悬赏 | 最新更新 | 盒子检索 | 下载中心 | 高级搜索    
  精品专区 | 繁體中文 | 奖励公告栏 | 直通车账号登陆 | 关闭GOOGLE广告 | 临时留言    
 
广告
评论:基于TidTCPServer/TidTCPClient组件多线程阻塞方式的局域网文件传输程序
tq0evqv 42462 2012/5/15 16:30:44
http://download2.pudn.com/downloads188/sourcecode/windows/network/46158354AFC910.4.rar
wynney 37800 2009/6/24 22:52:19
无法下载
jiangwang 37408 2009/5/5 14:00:42
不能下载了?
fffddd 37161 2009/4/10 19:44:25
不知道是用是d几编译的?
smll8402 37157 2009/4/10 10:59:17
。。。如果改进带下载文件所在目标目录就更好了。。
skywings 37138 2009/4/9 12:52:38

//-------如下就好。
      with idtcpsrvr1 do
      begin
       try
          Bindings.Clear;
          Bindings.Add;
          Bindings.Items[0].IP := '127.0.0.1';
          Bindings.Items[0].Port := ListenPort;

          if 0< lIpStr.Count then
          begin
          for I:= 0 to lIpStr.Count - 1 do
          begin
          if 0 <> CompareStr(Trim(lIpStr[I]),'127.0.0.1') then
          begin
          Bindings.Add;
          Bindings.Items[I+1].IP := lIpStr[I];
          Bindings.Items[I+1].Port := ListenPort;
          end;
          end;
          end;
       except
          lIpStr.Free;
          Result:= False;
          Exit;
        end;
      end;
skywings 37136 2009/4/9 12:34:03
说个bug...TidTcpServer在binds上要遍历机器的所有网络接口。。。
使用默认lo 127.0.0.1 可能会有些问题,看下面代码,改改就可以了

      with idtcpsrvr1 do
      begin
       try
          Bindings.Clear;
//          Bindings.Add;
//          Bindings.Items[0].IP := '127.0.0.1';
//          Bindings.Items[0].Port := ListenPort;

          if 0< lIpStr.Count then
          begin
          for I:= 0 to lIpStr.Count - 1 do
          begin
          Bindings.Add;
          Bindings.Items[I].IP := lIpStr[I];
          Bindings.Items[I].Port := ListenPort;
          end;
          end;
       except
          lIpStr.Free;
          Result:= False;
          Exit;
        end;
第一页 上一页 下一页 最后页 有 7 条纪录 共1页 1 - 7
 用户名:
 密 码:
自动登陆(30天有效)
 
  DELPHI盒子版权所有 技术支持:深圳市麟瑞科技有限公司 1999-2024 V4.01 粤ICP备10103342号-1 更新RSS列表