fix FTPS win build, license, header guards; fix few warnings

This commit is contained in:
Alex Fabijanic
2017-08-31 12:20:49 -05:00
parent dd573b98d8
commit c81de1d34b
6 changed files with 63 additions and 10 deletions

View File

@@ -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