可以在服务器端写一个com服务器,用户登陆com服务器,由它判断是哪个用户,然后发相应的数据

解决方案 »

  1.   

    用到COM就是3层了,你要服务器给你发送,好像用C/S就有点难了,最好是用3层,COM等,你为什么不自己去取数据?
      

  2.   

    服务器程序已经建好,我的CLient端如何写?
      

  3.   

    请看我的程序:
    var
      flag, logindex : integer;
      value : single;
    begin
      TcpClient1.remoteHost := '172.16.3.44';
      TcpClient1.RemotePort := '700';
      if TcpClient1.Connect then 
         while true do 
         begin
           TcpClient1.Readbuffer(flag, 4, 0);
           TcpClient1.ReadBuffer(logindex, 4, 0);
           TcpClient1.ReadBuffer(value, 4, 0); 
         end;
    end;
      

  4.   

    其实服务器是个server程序,一直在监听客户
      

  5.   

    在客户端放一个AdoConlection, 设置他的server user pasword 分别是 服务器的IP USER PASWORD 。前提是你要知道这些呦。
      

  6.   

    我觉得这个问题不要那么复杂就好解决的,
     你可以写一个程序Server 放到服务器上,客户端 Client ,并建立交流规则,
      这样就可以了了 ,不要需要什么3层的 数据库结构的 ,很简单的 !