84 lines
2.0 KiB
Plaintext
84 lines
2.0 KiB
Plaintext
// ***********************
|
|
WORD FTPClient::retrieveBlock(const String &controlData,Block<String> &stringBlock)
|
|
{
|
|
String responseLine;
|
|
DWORD responseLines(0);
|
|
|
|
stringBlock.remove();
|
|
if(!isConnected())return FALSE;
|
|
if(!putControlData(controlData,FALSE))return FALSE;
|
|
while(mNNTPControl.receive(responseLine))
|
|
{
|
|
if(mPeriod==responseLine&&1==responseLine.length())break;
|
|
if(!responseLines++)
|
|
{
|
|
String responseString(responseLine.betweenString(0,' '));
|
|
if(nackResponse.size()&&isInResponse(responseString,nackResponse))break;
|
|
if(ackResponse.size()&&isInResponse(responseString,ackResponse))continue;
|
|
}
|
|
stringBlock.insert(&responseLine);
|
|
}
|
|
return (stringBlock.size()?TRUE:FALSE);
|
|
}
|
|
// *************
|
|
|
|
|
|
(*mlpEditMonitor)->setText("FTP Interpreter v1.00 Copyright(c) 1996 Sean M. Kessler");
|
|
|
|
|
|
|
|
|
|
//CONNECT DIALOG 6, 15, 156, 63
|
|
//STYLE DS_ABSALIGN | DS_SYSMODAL | DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
|
//CAPTION "Connect to Remote Host"
|
|
//FONT 8, "MS Sans Serif"
|
|
//{
|
|
// LTEXT "Remote Host:", -1, 6, 12, 49, 8
|
|
// EDITTEXT IDC_EDIT1, 54, 11, 95, 12
|
|
// DEFPUSHBUTTON "Connect", IDOK, 35, 30, 50, 14
|
|
// PUSHBUTTON "Cancel", IDCANCEL, 93, 30, 50, 14
|
|
//}
|
|
|
|
|
|
|
|
CONNECT DIALOG 6, 15, 156, 63
|
|
STYLE DS_ABSALIGN | DS_SYSMODAL | DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Connect to Remote Host"
|
|
FONT 8, "MS Sans Serif"
|
|
{
|
|
LTEXT "Remote Host:", -1, 6, 12, 49, 8
|
|
EDITTEXT IDC_EDIT1, 54, 11, 95, 12
|
|
DEFPUSHBUTTON "Connect", IDOK, 35, 30, 50, 14
|
|
PUSHBUTTON "Cancel", IDCANCEL, 93, 30, 50, 14
|
|
}
|
|
|
|
|
|
|
|
//#ifndef _DISPLAY_EDITWINDOW_HPP_
|
|
//#include <display/editwnd.hpp>
|
|
//#endif
|
|
//#ifndef _THREAD_MONITOR_HPP_
|
|
//#include <thread/monitor.hpp>
|
|
//#endif
|
|
|
|
|
|
//#ifndef _FTP_INTERPRETER_HPP_
|
|
//#include <ftp/interprt.hpp>
|
|
//#endif
|
|
//#ifndef _FTP_FTPCLIENT_HPP_
|
|
//#include <ftp/ftp.hpp>
|
|
//#endif
|
|
|
|
|
|
#ifndef _COMMON_POINT_HPP_
|
|
#include <common/point.hpp>
|
|
#endif
|
|
|
|
|
|
void MainWindow::message(const String &messageString)
|
|
{
|
|
// mEditMonitor.enter();
|
|
mlpEditWindow->setText(messageString);
|
|
// mEditMonitor.leave();
|
|
}
|