// $Id: RlinkPort.ipp 666 2015-04-12 21:17:54Z mueller $
|
// $Id: RlinkPort.ipp 666 2015-04-12 21:17:54Z mueller $
|
//
|
//
|
// Copyright 2011-2015 by Walter F.J. Mueller
|
// Copyright 2011-2015 by Walter F.J. Mueller
|
//
|
//
|
// This program is free software; you may redistribute and/or modify it under
|
// This program is free software; you may redistribute and/or modify it under
|
// the terms of the GNU General Public License as published by the Free
|
// the terms of the GNU General Public License as published by the Free
|
// Software Foundation, either version 2, or at your option any later version.
|
// Software Foundation, either version 2, or at your option any later version.
|
//
|
//
|
// This program is distributed in the hope that it will be useful, but
|
// This program is distributed in the hope that it will be useful, but
|
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
|
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// for complete details.
|
// for complete details.
|
//
|
//
|
// Revision History:
|
// Revision History:
|
// Date Rev Version Comment
|
// Date Rev Version Comment
|
// 2015-04-11 666 1.3 add fXon, XonEnable()
|
// 2015-04-11 666 1.3 add fXon, XonEnable()
|
// 2013-05-01 513 1.2.1 fTraceLevel now uint32_t
|
// 2013-05-01 513 1.2.1 fTraceLevel now uint32_t
|
// 2013-02-23 492 1.2 use RparseUrl
|
// 2013-02-23 492 1.2 use RparseUrl
|
// 2013-02-22 491 1.1 use new RlogFile/RlogMsg interfaces
|
// 2013-02-22 491 1.1 use new RlogFile/RlogMsg interfaces
|
// 2011-03-27 375 1.0 Initial version
|
// 2011-03-27 375 1.0 Initial version
|
// 2011-01-15 356 0.1 First draft
|
// 2011-01-15 356 0.1 First draft
|
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
|
|
/*!
|
/*!
|
\file
|
\file
|
\version $Id: RlinkPort.ipp 666 2015-04-12 21:17:54Z mueller $
|
\version $Id: RlinkPort.ipp 666 2015-04-12 21:17:54Z mueller $
|
\brief Implemenation (inline) of RlinkPort.
|
\brief Implemenation (inline) of RlinkPort.
|
*/
|
*/
|
|
|
// all method definitions in namespace Retro
|
// all method definitions in namespace Retro
|
namespace Retro {
|
namespace Retro {
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
inline bool RlinkPort::IsOpen() const
|
inline bool RlinkPort::IsOpen() const
|
{
|
{
|
return fIsOpen;
|
return fIsOpen;
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
inline const Retro::RparseUrl& RlinkPort::Url() const
|
inline const Retro::RparseUrl& RlinkPort::Url() const
|
{
|
{
|
return fUrl;
|
return fUrl;
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
inline bool RlinkPort::XonEnable() const
|
inline bool RlinkPort::XonEnable() const
|
{
|
{
|
return fXon;
|
return fXon;
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
inline int RlinkPort::FdRead() const
|
inline int RlinkPort::FdRead() const
|
{
|
{
|
return fFdRead;
|
return fFdRead;
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
inline int RlinkPort::FdWrite() const
|
inline int RlinkPort::FdWrite() const
|
{
|
{
|
return fFdWrite;
|
return fFdWrite;
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
inline void RlinkPort::SetLogFile(const boost::shared_ptr& splog)
|
inline void RlinkPort::SetLogFile(const boost::shared_ptr& splog)
|
{
|
{
|
fspLog = splog;
|
fspLog = splog;
|
return;
|
return;
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
inline void RlinkPort::SetTraceLevel(uint32_t level)
|
inline void RlinkPort::SetTraceLevel(uint32_t level)
|
{
|
{
|
fTraceLevel = level;
|
fTraceLevel = level;
|
return;
|
return;
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
inline uint32_t RlinkPort::TraceLevel() const
|
inline uint32_t RlinkPort::TraceLevel() const
|
{
|
{
|
return fTraceLevel;
|
return fTraceLevel;
|
}
|
}
|
|
|
//------------------------------------------+-----------------------------------
|
//------------------------------------------+-----------------------------------
|
//! FIXME_docs
|
//! FIXME_docs
|
|
|
inline const Rstats& RlinkPort::Stats() const
|
inline const Rstats& RlinkPort::Stats() const
|
{
|
{
|
return fStats;
|
return fStats;
|
}
|
}
|
|
|
} // end namespace Retro
|
} // end namespace Retro
|
|
|