|
Ring Daemon
|

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_ {} |
Definition at line 43 of file gitserver.cpp.
|
inline |
Definition at line 46 of file gitserver.cpp.
References accountId_, destroyMtx_, jami::emitSignal(), isDestroying_, JAMI_DEBUG, parseOrder(), repository_, repositoryId_, and socket_.

|
inline |
Definition at line 74 of file gitserver.cpp.
References accountId_, JAMI_DEBUG, repositoryId_, and stop().

| void jami::GitServer::Impl::ACKCommon | ( | ) |
Definition at line 343 of file gitserver.cpp.
References jami::emitSignal(), and JAMI_WARNING.
Referenced by parseOrder().

| bool jami::GitServer::Impl::ACKFirst | ( | ) |
Definition at line 365 of file gitserver.cpp.
References jami::emitSignal(), and JAMI_WARNING.
Referenced by parseOrder().

| std::map< std::string, std::string > jami::GitServer::Impl::getParameters | ( | std::string_view | pkt_line | ) |
Definition at line 555 of file gitserver.cpp.
References jami::emitSignal().
Referenced by parseOrder().

| bool jami::GitServer::Impl::NAK | ( | ) |
Definition at line 389 of file gitserver.cpp.
References jami::emitSignal(), JAMI_WARNING, and NAK_PKT.
Referenced by parseOrder().

| bool jami::GitServer::Impl::parseOrder | ( | std::string_view | buf = {} | ) |
Definition at line 110 of file gitserver.cpp.
References accountId_, ACKCommon(), ACKFirst(), cachedPkt_, common_, DONE_CMD, jami::emitSignal(), getParameters(), HAVE_CMD, haveRefs_, JAMI_ERROR, JAMI_LOG, JAMI_WARNING, NAK(), repository_, repositoryId_, sendPackData(), sendReferenceCapabilities(), UPLOAD_PACK_CMD, jami::swarm_protocol::version, WANT_CMD, and wantedReference_.
Referenced by Impl().

| void jami::GitServer::Impl::sendPackData | ( | ) |
Definition at line 408 of file gitserver.cpp.
References jami::emitSignal(), FLUSH_PKT, JAMI_ERROR, JAMI_WARNING, and jami::toGitHex().
Referenced by parseOrder().

Definition at line 254 of file gitserver.cpp.
References jami::emitSignal(), FLUSH_PKT, JAMI_ERROR, JAMI_WARNING, SERVER_CAPABILITIES, and jami::toGitHex().
Referenced by parseOrder().

|
inline |
Definition at line 79 of file gitserver.cpp.
References destroyMtx_, jami::emitSignal(), isDestroying_, and socket_.
Referenced by ~Impl().

| std::string jami::GitServer::Impl::accountId_ {} |
Definition at line 96 of file gitserver.cpp.
Referenced by Impl(), parseOrder(), and ~Impl().
| std::string jami::GitServer::Impl::cachedPkt_ {} |
Definition at line 103 of file gitserver.cpp.
Referenced by parseOrder().
| std::string jami::GitServer::Impl::common_ {} |
Definition at line 101 of file gitserver.cpp.
Referenced by parseOrder().
| std::mutex jami::GitServer::Impl::destroyMtx_ {} |
Definition at line 104 of file gitserver.cpp.
| std::vector<std::string> jami::GitServer::Impl::haveRefs_ {} |
Definition at line 102 of file gitserver.cpp.
Referenced by parseOrder().
| std::atomic_bool jami::GitServer::Impl::isDestroying_ {false} |
Definition at line 105 of file gitserver.cpp.
| onFetchedCb jami::GitServer::Impl::onFetchedCb_ {} |
Definition at line 106 of file gitserver.cpp.
| std::string jami::GitServer::Impl::repository_ {} |
Definition at line 98 of file gitserver.cpp.
Referenced by Impl(), and parseOrder().
| std::string jami::GitServer::Impl::repositoryId_ {} |
Definition at line 97 of file gitserver.cpp.
Referenced by Impl(), parseOrder(), and ~Impl().
| std::shared_ptr<dhtnet::ChannelSocket> jami::GitServer::Impl::socket_ {} |
Definition at line 99 of file gitserver.cpp.
| std::string jami::GitServer::Impl::wantedReference_ {} |
Definition at line 100 of file gitserver.cpp.
Referenced by parseOrder().