#ifndef __WX_FTP_H__
#define __WX_FTP_H__
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "ftp.h"
-#endif
-
#include "wx/defs.h"
#if wxUSE_PROTOCOL_FTP
void SetUser(const wxString& user) { m_user = user; }
void SetPassword(const wxString& passwd) { m_passwd = passwd; }
- bool Connect(wxSockAddress& addr, bool wait = true);
+ bool Connect(const wxSockAddress& addr, bool wait = true);
bool Connect(const wxString& host);
// disconnect
// Parameters set up
// set transfer mode now
- void SetPassive(bool pasv) { m_bPassive = pasv; };
+ void SetPassive(bool pasv) { m_bPassive = pasv; }
void SetDefaultTimeout(wxUint32 Value);
bool SetBinary() { return SetTransferMode(BINARY); }
bool SetAscii() { return SetTransferMode(ASCII); }
const wxString& arg = wxEmptyString);
// get the server reply, return the first character of the reply code,
- // '1'..'5' for normal FTP replies, 0 (*not* '0') if an error occured
+ // '1'..'5' for normal FTP replies, 0 (*not* '0') if an error occurred
char GetResult();
// check that the result is equal to expected value
wxSocketBase *GetActivePort();
// helper for GetPort()
- wxString GetPortCmdArgument(wxIPV4address Local, wxIPV4address New);
+ wxString GetPortCmdArgument(const wxIPV4address& Local, const wxIPV4address& New);
// accept connection from server in active mode, returns the same socket as
// passed in in passive mode