Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CNfsConnection Class Reference

#include <NFSFile.h>

Inheritance diagram for CNfsConnection:

Classes

struct  contextTimeout
 
struct  keepAliveStruct
 

Public Types

typedef std::map< struct nfsfh *, struct keepAliveStructtFileKeepAliveMap
 
typedef std::map< std::string, struct contextTimeouttOpenContextMap
 

Public Member Functions

 CNfsConnection ()
 
 ~CNfsConnection ()
 
bool Connect (const CURL &url, std::string &relativePath)
 
struct nfs_context * GetNfsContext ()
 
uint64_t GetMaxReadChunkSize ()
 
uint64_t GetMaxWriteChunkSize ()
 
std::list< std::string > GetExportList (const CURL &url)
 
bool splitUrlIntoExportAndPath (const CURL &url, std::string &exportPath, std::string &relativePath, std::list< std::string > &exportList)
 
bool splitUrlIntoExportAndPath (const CURL &url, std::string &exportPath, std::string &relativePath)
 
int stat (const CURL &url, nfs_stat_64 *statbuff)
 
void AddActiveConnection ()
 
void AddIdleConnection ()
 
void CheckIfIdle ()
 
void Deinit ()
 
void resetKeepAlive (const std::string &_exportPath, struct nfsfh *_pFileHandle)
 
void removeFromKeepAliveList (struct nfsfh *_pFileHandle)
 
const std::string & GetConnectedIp () const
 
const std::string & GetConnectedExport () const
 
const std::string GetContextMapId () const
 

Member Typedef Documentation

◆ tFileKeepAliveMap

std::map<struct nfsfh *, struct keepAliveStruct> CNfsConnection::tFileKeepAliveMap

◆ tOpenContextMap

std::map<std::string, struct contextTimeout> CNfsConnection::tOpenContextMap

Constructor & Destructor Documentation

◆ CNfsConnection()

CNfsConnection::CNfsConnection ( )

◆ ~CNfsConnection()

CNfsConnection::~CNfsConnection ( )

Member Function Documentation

◆ AddActiveConnection()

void CNfsConnection::AddActiveConnection ( )

◆ AddIdleConnection()

void CNfsConnection::AddIdleConnection ( )

◆ CheckIfIdle()

void CNfsConnection::CheckIfIdle ( )

◆ Connect()

bool CNfsConnection::Connect ( const CURL & url,
std::string & relativePath )

◆ Deinit()

void CNfsConnection::Deinit ( )

◆ GetConnectedExport()

const std::string & CNfsConnection::GetConnectedExport ( ) const
inline

◆ GetConnectedIp()

const std::string & CNfsConnection::GetConnectedIp ( ) const
inline

◆ GetContextMapId()

const std::string CNfsConnection::GetContextMapId ( ) const
inline

◆ GetExportList()

std::list< std::string > CNfsConnection::GetExportList ( const CURL & url)

◆ GetMaxReadChunkSize()

uint64_t CNfsConnection::GetMaxReadChunkSize ( )
inline

◆ GetMaxWriteChunkSize()

uint64_t CNfsConnection::GetMaxWriteChunkSize ( )
inline

◆ GetNfsContext()

struct nfs_context * CNfsConnection::GetNfsContext ( )
inline

◆ removeFromKeepAliveList()

void CNfsConnection::removeFromKeepAliveList ( struct nfsfh * _pFileHandle)

◆ resetKeepAlive()

void CNfsConnection::resetKeepAlive ( const std::string & _exportPath,
struct nfsfh * _pFileHandle )

◆ splitUrlIntoExportAndPath() [1/2]

bool CNfsConnection::splitUrlIntoExportAndPath ( const CURL & url,
std::string & exportPath,
std::string & relativePath )

◆ splitUrlIntoExportAndPath() [2/2]

bool CNfsConnection::splitUrlIntoExportAndPath ( const CURL & url,
std::string & exportPath,
std::string & relativePath,
std::list< std::string > & exportList )

◆ stat()

int CNfsConnection::stat ( const CURL & url,
nfs_stat_64 * statbuff )

The documentation for this class was generated from the following files: