mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
fix FTPS win build, license, header guards; fix few warnings
This commit is contained in:
@@ -1,10 +1,34 @@
|
||||
#pragma once
|
||||
//
|
||||
// FTPSClientSession.h
|
||||
//
|
||||
// $Id: //poco/1.4/Net/include/Poco/Net/FTPSClientSession.h#1 $
|
||||
//
|
||||
// Library: Net
|
||||
// Package: FTP
|
||||
// Module: FTPSClientSession
|
||||
//
|
||||
// Definition of the FTPSClientSession class.
|
||||
//
|
||||
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#ifndef NetSSL_FTPSClientSession_INCLUDED
|
||||
#define NetSSL_FTPSClientSession_INCLUDED
|
||||
|
||||
|
||||
#include "Poco/Net/NetSSL.h"
|
||||
#include "Poco/Net/FTPClientSession.h"
|
||||
|
||||
|
||||
namespace Poco {
|
||||
namespace Net {
|
||||
|
||||
class FTPSClientSession :
|
||||
|
||||
class NetSSL_API FTPSClientSession :
|
||||
public Poco::Net::FTPClientSession
|
||||
{
|
||||
public:
|
||||
@@ -56,6 +80,11 @@ private:
|
||||
bool _bSecureDataConnection = false;
|
||||
};
|
||||
|
||||
|
||||
//
|
||||
// inlines
|
||||
//
|
||||
|
||||
inline bool FTPSClientSession::isSecure() const
|
||||
{
|
||||
if (_pControlSocket != nullptr)
|
||||
@@ -63,4 +92,8 @@ inline bool FTPSClientSession::isSecure() const
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}} // namespace Poco::Net
|
||||
|
||||
|
||||
#endif // #define NetSSL_FTPSClientSession_INCLUDED
|
||||
|
Reference in New Issue
Block a user