Posts: 16
Joined: 17.Aug.2005
From: china
Status: offline
I am creating a ftp content filter to block the down load of txt file with 'helloworld' in it.Because I am a beginner,so first I want to creat a filter without any block function. I'm rewriting the exeblock in ISA 2004 SDK.I only change the code in ebscannerdatafilter. I delete the file writing function from it. And I send the content in iobuffer immediately in the CompleteAsyncIO function. But I find that the client still can't complete the connect to the ftp server. the code is as follow:
///////////////////////////////////////////////////////////////////////////// // CEBScannerDataFilter::CompleteAsyncIO // // Implements IFWXIOCompletion::CompleteAsyncIO // // This methods is called when a Recv() call completed (all Recv calls // are made with UserData = 0), or when a Send() call is completed // (dwUserData != 0) ///////////////////////////////////////////////////////////////////////////// HRESULT CEBScannerDataFilter::CompleteAsyncIO( BOOL fSuccess, DWORD Win32ErrorCode, IFWXIOBuffer *pIOBuffer, UserContextType UserData, PSOCKADDR From, INT FromLen ) { UNREFERENCED_PARAMETER(FromLen); UNREFERENCED_PARAMETER(From); UNREFERENCED_PARAMETER(Win32ErrorCode);
Posts: 16
Joined: 17.Aug.2005
From: china
Status: offline
When I installed this filter. The client can connect to the ftp server. If the client input 'dir',the client can get the file list from the ftp server. But the ftp.exe will stop here and the client can't input any other command.