请教:我在delphi7中使用TTcpClient,socktype为bmnonblocking,当作.open时,
就出错,SocketError=10035 。为什么?

解决方案 »

  1.   

    我设置如下:
    procedure TForm1.Button1Click(Sender: TObject);
    begin
      tcpclient1.RemoteHost:='127.0.0.1';
      tcpclient1.RemotePort:='80';
      tcpclient1.Open;
    end;
    procedure TForm1.TcpClient1Error(Sender: TObject; SocketError: Integer);
    begin
      showmessage(inttostr(socketError));
    end;socketError=10035请问还有什么属性要设?
      

  2.   

    服务器那一端,俺可是管不了。如果我要用Tcpclient下载网页,如何编程?
    能给个例子我吗(要在delphi7的)。