Hi Lukas Gebauer., At 14.02.2007 22:43 you wrote:
>> I have problem with ftpsend->abort() method. Some ugly servers, like MS
>> IIS, don't properly response for abort() method from ftpsend class.
>> Connection not close and my client thread is freezed.
> 
> You can try to call TelnetAbort method too.

But it don't help.

I solve this problem using SetTcpEntry function from MS IPHelper API

To close data socket I use this code (C++):

  MIB_TCPROW mtr;

  mtr.dwLocalAddr=inet_addr(tLocalIP);
  mtr.dwLocalPort=::htons((::u_short)tLocalPort);
  mtr.dwRemoteAddr=inet_addr(tRemoteIP);
  mtr.dwRemotePort=::htons((::u_short)tRemotePort);
  mtr.dwState=MIB_TCP_STATE_DELETE_TCB;

  SetTcpEntry(&mtr);


tRemoteIP is DSock->GetRemoteSinIP()
tRemotePort is DSock->GetRemoteSinPort()
tLocalIP is DSock->GetLocalSinIP()
tLocalPort is DSock->GetLocalSinPort()

> Are you using passive or active transfer?

Both.

-- 

Vladimir Davidenko
http://www.ftpgetter.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to