Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::GitServer::Impl Class Reference
Collaboration diagram for jami::GitServer::Impl:
Collaboration graph

Public Member Functions

void ACKCommon ()
 
bool ACKFirst ()
 
std::map< std::string, std::string > getParameters (std::string_view pkt_line)
 
 Impl (const std::string &accountId, const std::string &repositoryId, const std::string &repository, const std::shared_ptr< dhtnet::ChannelSocket > &socket)
 
bool NAK ()
 
bool parseOrder (std::string_view buf={})
 
void sendPackData ()
 
void sendReferenceCapabilities (bool sendVersion=false)
 
void stop ()
 
 ~Impl ()
 

Public Attributes

std::string accountId_ {}
 
std::string cachedPkt_ {}
 
std::string common_ {}
 
std::mutex destroyMtx_ {}
 
std::vector< std::string > haveRefs_ {}
 
std::atomic_bool isDestroying_ {false}
 
onFetchedCb onFetchedCb_ {}
 
std::string repository_ {}
 
std::string repositoryId_ {}
 
std::shared_ptr< dhtnet::ChannelSocket > socket_ {}
 
std::string wantedReference_ {}
 

Detailed Description

Definition at line 44 of file gitserver.cpp.

Constructor & Destructor Documentation

◆ Impl()

jami::GitServer::Impl::Impl ( const std::string &  accountId,
const std::string &  repositoryId,
const std::string &  repository,
const std::shared_ptr< dhtnet::ChannelSocket > &  socket 
)
inline

Definition at line 47 of file gitserver.cpp.

References accountId_, destroyMtx_, jami::emitSignal(), isDestroying_, JAMI_DEBUG, parseOrder(), repository_, repositoryId_, and socket_.

Here is the call graph for this function:

◆ ~Impl()

jami::GitServer::Impl::~Impl ( )
inline

Definition at line 77 of file gitserver.cpp.

References accountId_, JAMI_DEBUG, repositoryId_, and stop().

Here is the call graph for this function:

Member Function Documentation

◆ ACKCommon()

void jami::GitServer::Impl::ACKCommon ( )

Definition at line 296 of file gitserver.cpp.

References jami::emitSignal(), and JAMI_WARNING.

Referenced by parseOrder().

Here is the call graph for this function:

◆ ACKFirst()

bool jami::GitServer::Impl::ACKFirst ( )

Definition at line 312 of file gitserver.cpp.

References jami::emitSignal(), and JAMI_WARNING.

Referenced by parseOrder().

Here is the call graph for this function:

◆ getParameters()

std::map< std::string, std::string > jami::GitServer::Impl::getParameters ( std::string_view  pkt_line)

Definition at line 461 of file gitserver.cpp.

References jami::emitSignal().

Referenced by parseOrder().

Here is the call graph for this function:

◆ NAK()

bool jami::GitServer::Impl::NAK ( )

Definition at line 330 of file gitserver.cpp.

References jami::emitSignal(), JAMI_WARNING, and NAK_PKT.

Referenced by parseOrder().

Here is the call graph for this function:

◆ parseOrder()

bool jami::GitServer::Impl::parseOrder ( std::string_view  buf = {})

◆ sendPackData()

void jami::GitServer::Impl::sendPackData ( )

Definition at line 344 of file gitserver.cpp.

References jami::emitSignal(), FLUSH_PKT, JAMI_ERR, JAMI_ERROR, JAMI_WARN, JAMI_WARNING, and jami::toGitHex().

Referenced by parseOrder().

Here is the call graph for this function:

◆ sendReferenceCapabilities()

void jami::GitServer::Impl::sendReferenceCapabilities ( bool  sendVersion = false)

Definition at line 226 of file gitserver.cpp.

References jami::emitSignal(), FLUSH_PKT, JAMI_ERROR, JAMI_WARNING, SERVER_CAPABILITIES, and jami::toGitHex().

Referenced by parseOrder().

Here is the call graph for this function:

◆ stop()

void jami::GitServer::Impl::stop ( )
inline

Definition at line 84 of file gitserver.cpp.

References destroyMtx_, jami::emitSignal(), isDestroying_, and socket_.

Referenced by ~Impl().

Here is the call graph for this function:

Member Data Documentation

◆ accountId_

std::string jami::GitServer::Impl::accountId_ {}

Definition at line 101 of file gitserver.cpp.

Referenced by Impl(), and ~Impl().

◆ cachedPkt_

std::string jami::GitServer::Impl::cachedPkt_ {}

Definition at line 108 of file gitserver.cpp.

Referenced by parseOrder().

◆ common_

std::string jami::GitServer::Impl::common_ {}

Definition at line 106 of file gitserver.cpp.

Referenced by parseOrder().

◆ destroyMtx_

std::mutex jami::GitServer::Impl::destroyMtx_ {}

Definition at line 109 of file gitserver.cpp.

Referenced by Impl(), and stop().

◆ haveRefs_

std::vector<std::string> jami::GitServer::Impl::haveRefs_ {}

Definition at line 107 of file gitserver.cpp.

Referenced by parseOrder().

◆ isDestroying_

std::atomic_bool jami::GitServer::Impl::isDestroying_ {false}

Definition at line 110 of file gitserver.cpp.

Referenced by Impl(), and stop().

◆ onFetchedCb_

onFetchedCb jami::GitServer::Impl::onFetchedCb_ {}

Definition at line 111 of file gitserver.cpp.

◆ repository_

std::string jami::GitServer::Impl::repository_ {}

Definition at line 103 of file gitserver.cpp.

Referenced by Impl(), and parseOrder().

◆ repositoryId_

std::string jami::GitServer::Impl::repositoryId_ {}

Definition at line 102 of file gitserver.cpp.

Referenced by Impl(), and ~Impl().

◆ socket_

std::shared_ptr<dhtnet::ChannelSocket> jami::GitServer::Impl::socket_ {}

Definition at line 104 of file gitserver.cpp.

Referenced by Impl(), and stop().

◆ wantedReference_

std::string jami::GitServer::Impl::wantedReference_ {}

Definition at line 105 of file gitserver.cpp.

Referenced by parseOrder().


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