- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
几天来,我一直在努力让 PCP LibJingle 示例发挥作用。在解决了所有编译和运行错误之后,我现在遇到了一个我以前没有遇到过的错误。
当作为发送方或接收方运行程序时,程序会收到 503“服务不可用”错误并终止程序,但作为服务器运行时工作正常。我知道标准是 5xx 表示服务器端错误,所以我逐行查看程序输出(最后提供)。根据我对服务器和 LibJingle 几乎为零的经验,我能想到的最好的结果是以下任一(或两者)导致 503:
我已经登录了这两个 Google 帐户,因此它们不会离线/不可用,LibJingle 程序反射(reflect)了这一点。但是,一旦 PCP 示例运行,优先级就会设置回 -1。我还注意到程序输出中的大部分(如果不是全部的话)Google 链接都是 404。
我的问题:
提前感谢您的帮助。--KMC
附言在提供的程序输出中,我试图将文件从 forge...1@gmail.com 发送到 forge...2@gmail.com。我审查了一些内容并试图减少其他内容。但是,由于不确定什么可能相关或不相关,我没有做太多剪辑。如果 mod 或其他人知道可能相关的内容并想对其进行编辑,请随时进行。
forgefour@forgefour-ubuntu:~/Desktop$ ./LibJingle_Install/libjingle-0.6.13/talk/build/dbg/staging/pcp forge..1@gmail.com call_main.pdf forge..2@gmail.com/pcp8B13E6B8:outputmainadobe.pdf
Directory: /home/forgefour/Desktop
Password:
connecting...
[002:406] OpenSSLAdapter::OnConnectEvent
[002:406] SEND >>>>>>>>>>>>>>>>>>>>>>>>> : Mon Jun 25 17:09:17 2012
[002:406] <stream:stream to="gmail.com" xml:lang="*" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
logging in...
[002:446] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:17 2012
[002:446] <stream:stream from="gmail.com" id="00B7404A40B94AA0" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
[002:447] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:17 2012
[002:447] <stream:features>
[002:447] <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">
[002:447] <required/>
[002:447] </starttls>
[002:447] <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
[002:447] <mechanism>
[002:447] X-GOOGLE-TOKEN
[002:447] </mechanism>
[002:447] <mechanism>
[002:447] X-OAUTH2
[002:447] </mechanism>
[002:447] </mechanisms>
[002:447] </stream:features>
[002:447] SEND >>>>>>>>>>>>>>>>>>>>>>>>> : Mon Jun 25 17:09:17 2012
[002:447] <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
[002:488] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:17 2012
[002:488] <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
[002:488] BeginSSL: gmail.com
[002:488] ContinueSSL
[002:488] SSL_connect:before/connect initialization
[002:489] SSL_connect:SSLv3 write client hello A
[002:489] SSL_connect:error in SSLv3 read server hello A
[002:489] -- error want read
[002:489] SEND >>>>>>>>>>>>>>>>>>>>>>>>> : Mon Jun 25 17:09:17 2012
[002:489] <stream:stream to="gmail.com" xml:lang="*" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
[002:530] ContinueSSL
[002:530] SSL_connect:error in SSLv3 read server hello A
[002:530] -- error want read
[002:531] ContinueSSL
[002:531] SSL_connect:SSLv3 read server hello A
[002:531] SSL_connect:SSLv3 read server certificate A
[002:531] SSL_connect:SSLv3 read server done A
[002:531] SSL_connect:SSLv3 write client key exchange A
[002:532] SSL_connect:SSLv3 write change cipher spec A
[002:532] SSL_connect:SSLv3 write finished A
[002:532] SSL_connect:SSLv3 flush data
[002:532] SSL_connect:error in SSLv3 read finished A
[002:532] -- error want read
[002:575] ContinueSSL
[002:575] SSL_connect:SSLv3 read finished A
[002:575] -- success
[002:575] Certificate from server:
[002:575] Version: 3 (0x2)
Serial Number:31:fa:c7:51:00:00:00:00:5b:30
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=US, O=Google Inc, CN=Google Internet Authority
Validity
Not Before: Jun 5 00:52:14 2012 GMT
Not After : Jun 5 01:02:14 2013 GMT
Subject: C=US, ST=California, L=Mountain View, O=Google Inc, CN=gmail.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (1024 bit)
Modulus:...
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Extended Key Usage:
TLS Web Server Authentication, TLS Web Client Authentication
X509v3 Subject Key Identifier:
E1:73:4D:BB:F5:22:C3:57:06:EA:BF:18:73:1F:91:29:EE:54:2A:17
X509v3 Authority Key Identifier:
keyid:BF:C0:30:EB:F5:43:11:3E:67:BA:9E:91:FB:FC:6A:DA:E3:6B:12:24
X509v3 CRL Distribution Points:
Full Name:URI:http://www.gstatic.com/GoogleInternetAuthority/GoogleInternetAuthority.crl
Authority Information Access:
CA Issuers - URI:http://www.gstatic.com/GoogleInternetAuthority/GoogleInternetAuthority.crt
X509v3 Subject Alternative Name: DNS:gmail.com
Signature Algorithm: sha1WithRSAEncryption...
[002:575] Cipher: AES128-SHA SSLv3 Kx=RSA Au=RSA Enc=AES(128) Mac=SHA1
[002:616] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:616] <stream:stream from="gmail.com" id="F585A9BF4936FE0D" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
[002:616] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:616] <stream:features>
[002:616] <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
[002:616] <mechanism>
[002:616] PLAIN
[002:616] </mechanism>
[002:616] <mechanism>
[002:616] X-GOOGLE-TOKEN
[002:616] </mechanism>
[002:616] <mechanism>
[002:616] X-OAUTH2
[002:616] </mechanism>
[002:616] </mechanisms>
[002:616] </stream:features>
[002:617] SEND >>>>>>>>>>>>>>>>>>>>>>>>> : Mon Jun 25 17:09:18 2012
[002:617] <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="PLAIN" auth:allow-non-google-login="true" auth:client-uses-full-bind-result="true" xmlns:auth="http://www.google.com/talk/protocol/auth">
[002:617] ## TEXT REMOVED ##
[002:617] </auth>
[002:696] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:696] <success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
[002:697] SEND >>>>>>>>>>>>>>>>>>>>>>>>> : Mon Jun 25 17:09:18 2012
[002:697] <stream:stream to="gmail.com" xml:lang="*" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
[002:737] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:737] <stream:stream from="gmail.com" id="A554FE81E66DED32" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
[002:737] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:737] <stream:features>
[002:737] <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"/>
[002:737] <session xmlns="urn:ietf:params:xml:ns:xmpp-session"/>
[002:737] </stream:features>
[002:737] SEND >>>>>>>>>>>>>>>>>>>>>>>>> : Mon Jun 25 17:09:18 2012
[002:737] <iq type="set" id="0">
[002:737] <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
[002:737] <resource>
[002:737] pcp
[002:737] </resource>
[002:737] </bind>
[002:737] </iq>
[002:777] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:777] <iq id="0" type="result">
[002:777] <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
[002:777] <jid>
[002:777] forge...1@gmail.com/pcp7B23909E
[002:777] </jid>
[002:777] </bind>
[002:777] </iq>
[002:777] SEND >>>>>>>>>>>>>>>>>>>>>>>>> : Mon Jun 25 17:09:18 2012
[002:777] <iq type="set" id="1">
[002:777] <session xmlns="urn:ietf:params:xml:ns:xmpp-session"/>
[002:777] </iq>
[002:778] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:817] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:817] <iq type="result" id="1"/>
logged in...
[002:817] SEND >>>>>>>>>>>>>>>>>>>>>>>>> : Mon Jun 25 17:09:18 2012
[002:817] <presence>
[002:817] <priority>
[002:817] -1
[002:817] </priority>
[002:817] </presence>
Logged in as forge...1@gmail.com/pcp7B23909E
[002:817] Making key pair
[002:822] Returning key pair
[002:822] Making certificate for forge...1@gmail.com/pcp7B23909E
[002:823] Returning certificate
[002:823] TunnelSessionClientBase::OnSessionCreate: received=0
[002:823] Session:2481285798 Old state:STATE_INIT New state:STATE_SENTINITIATE Type:http://www.google.com/talk/securetunnel Transport:http://www.google.com/transport/p2p
[002:823] TunnelSession::OnSessionState(Session::STATE_SENTINITIATE)
[002:823] SEND >>>>>>>>>>>>>>>>>>>>>>>>> : Mon Jun 25 17:09:18 2012
[002:823] <iq type="get" id="3">
[002:823] <query xmlns="google:jingleinfo"/>
[002:823] </iq>
[002:823] SEND >>>>>>>>>>>>>>>>>>>>>>>>> : Mon Jun 25 17:09:18 2012
[002:823] <iq to="forge...2@gmail.com/pcp8B13E6B8" type="set" id="5">
[002:823] <jingle xmlns="urn:xmpp:jingle:1" action="session-initiate" sid="2481285798" initiator="forge...1@gmail.com/pcp7B23909E">
[002:823] <content name="securetunnel" creator="initiator">
[002:823] <description xmlns="http://www.google.com/talk/securetunnel">
[002:823] <type>
[002:823] recv:outputmainadobe.pdf
[002:823] </type>
[002:823] <client-cert>
[002:823] -----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----
[002:823] </client-cert>
[002:823] </description>
[002:823] <transport xmlns="http://www.google.com/transport/p2p"/>
[002:823] </content>
[002:823] </jingle>
[002:823] <session xmlns="http://www.google.com/session" type="initiate" id="2481285798" initiator="forge...1@gmail.com/pcp7B23909E">
[002:823] <description xmlns="http://www.google.com/talk/securetunnel">
[002:823] <type>
[002:823] recv:outputmainadobe.pdf
[002:823] </type>
[002:823] <client-cert>
[002:823] -----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----
[002:823] </client-cert>
[002:823] </description>
[002:823] </session>
[002:823] </iq>
[002:867] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:867] <iq to="forge...1@gmail.com/pcp7B23909E" id="3" type="result">
[002:867] <query xmlns="google:jingleinfo">
[002:867] <stun>
[002:867] <server host="stun.l.google.com" udp="19302"/>
[002:867] <server host="alt3.stun.l.google.com" udp="19302"/>
[002:867] <server host="alt2.stun.l.google.com" udp="19302"/>
[002:867] <server host="alt4.stun.l.google.com" udp="19302"/>
[002:867] <server host="alt1.stun.l.google.com" udp="19302"/>
[002:867] </stun>
[002:867] <relay>
[002:867] <token>
[002:867] CAESHgoVZm9yZ2Vjb21tczFAZ21haWwuY29tEJXfqb2CJxoQy4rGyFRtv1QQGHf8AQWC0A==
[002:867] </token>
[002:867] <server host="relay.google.com" udp="19295" tcp="19294" tcpssl="443"/>
[002:867] </relay>
[002:867] </query>
[002:867] </iq>
[002:880] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:880] <presence from="forge...1@gmail.com/pcp0C32AC91" to="forge...1@gmail.com/pcp7B23909E">
[002:880] <priority>
[002:880] -1
[002:880] </priority>
[002:880] <x xmlns="vcard-temp:x:update"/>
[002:880] </presence>
[002:880] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:882] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:882] <presence from="cu...@gmail.com/gmail.17841843" to="forge...1@gmail.com/pcp7B23909E">
[002:882] <status/>
[002:882] <priority>
[002:882] 24
[002:882] </priority>
[002:882] <caps:c node="http://mail.google.com/xmpp/client/caps" ver="1.1" ext="pmuc-v1 sms-v1 camera-v1 video-v1 voice-v1" xmlns:caps="http://jabber.org/protocol/caps"/>
[002:882] <x xmlns="vcard-temp:x:update">
[002:882] <photo>
[002:882] c632207e8c5c202147ccbd6c431334234750f966
[002:882] </photo>
[002:882] </x>
[002:882] </presence>
[002:956] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:956] <iq to="forge...1@gmail.com/pcp7B23909E" type="error" id="5" from="forge...2@gmail.com/pcp8B13E6B8">
[002:956] <jingle action="session-initiate" sid="2481285798" initiator="forge...1@gmail.com/pcp7B23909E" xmlns="urn:xmpp:jingle:1">
[002:956] <content name="securetunnel" creator="initiator">
[002:956] <description xmlns="http://www.google.com/talk/securetunnel">
[002:956] <type>
[002:956] recv:outputmainadobe.pdf
[002:956] </type>
[002:956] <client-cert>
[002:956] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:956] -----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----
[002:956] </client-cert>
[002:956] </description>
[002:956] <transport xmlns="http://www.google.com/transport/p2p"/>
[002:956] </content>
[002:956] </jingle>
[002:956] <session type="initiate" id="2481285798" initiator="forge...1@gmail.com/pcp7B23909E" xmlns="http://www.google.com/session">
[002:956] <description xmlns="http://www.google.com/talk/securetunnel">
[002:956] <type>
[002:956] recv:outputmainadobe.pdf
[002:956] </type>
[002:956] <client-cert>
[002:956] RECV <<<<<<<<<<<<<<<<<<<<<<<<< : Mon Jun 25 17:09:18 2012
[002:956] -----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----
[002:956] </client-cert>
[002:956] </description>
[002:956] </session>
[002:956] <error code="503" type="cancel">
[002:956] <service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
[002:956] </error>
[002:956] </iq>
[002:957] Error(session.cc:858): Session error:
<cli:error code="503" type="cancel" xmlns:cli="jabber:client"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></cli:error>
in response to:
<cli:iq to="forge...2@gmail.com/pcp8B13E6B8" type="set" id="5" xmlns:cli="jabber:client"><jingle xmlns="urn:xmpp:jingle:1" action="session-initiate" sid="2481285798" initiator="forge.1@gmail.com/pcp7B23909E"><content name="securetunnel" creator="initiator"><description xmlns="http://www.google.com/talk/securetunnel"><type>recv:outputmainadobe.pdf</type><client-cert>-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----
</client-cert></description><transport xmlns="http://www.google.com/transport/p2p"/></content></jingle><session xmlns="http://www.google.com/session" type="initiate" id="2481285798" initiator="forge...1@gmail.com/pcp7B23909E"><description xmlns="http://www.google.com/talk/securetunnel"><type>recv:outputmainadobe.pdf</type><client-cert>-----BEGIN CERTIFICATE-----...----END CERTIFICATE-----
</client-cert></description></session></cli:iq>
[002:957] Session:2481285798 Old state:STATE_SENTINITIATE New state:STATE_SENTTERMINATE Type:http://www.google.com/talk/securetunnel Transport:http://www.google.com/transport/p2p
[002:957] TunnelSession::OnSessionState(Session::STATE_SENTTERMINATE)
[002:957] Destroying unconnected PseudoTcpChannel
[002:957] SEND >>>>>>>>>>>>>>>>>>>>>>>>> : Mon Jun 25 17:09:18 2012
[002:957] <iq to="forge...2@gmail.com/pcp8B13E6B8" type="set" id="6">
[002:957] <jingle xmlns="urn:xmpp:jingle:1" action="session-terminate" sid="2481285798">
[002:957] <reason>
[002:957] <general-error/>
[002:957] </reason>
[002:957] </jingle>
[002:957] <session xmlns="http://www.google.com/session" type="terminate" id="2481285798" initiator="forge...1@gmail.com/pcp7B23909E">
[002:957] <general-error/>
[002:957] </session>
[002:957] </iq>
[002:957] OpenSSLStreamAdapter::OnEvent(SE_CLOSE, -1)
[002:957] Cleanup
Tunnel closed with error: -1
[002:957] Cleanup
[002:957] TunnelSessionClientBase::OnSessionDestroy
[002:957] Session:2481285798 Old state:STATE_SENTTERMINATE New state:STATE_DEINIT Type:http://www.google.com/talk/securetunnel Transport:http://www.google.com/transport/p2p
[002:957] virtual void cricket::PseudoTcpChannel::OnMessage(talk_base::Message*): (MSG_SI_DESTROY)
[002:957] SEND >>>>>>>>>>>>>>>>>>>>>>>>> : Mon Jun 25 17:09:18 2012
[002:957] </stream:stream>
logged out...
[002:957] Cleanup
编辑:根据要求,我包含了一些代码(我会包含所有代码,但主文件有 723 行)。我仍然直接使用未修改的 Google 的 LibJingle 代码,因为我还没有能够让它工作。可以找到此文件的完整代码 here .
int main(int argc, char **argv) {
talk_base::LogMessage::LogThreads();
talk_base::LogMessage::LogTimestamps();
// Parse the arguments.
int index = 1;
while (index < argc) {
std::string name, value;
if (!ParseArg(argv[index], &name, &value))
break;
if (name == "help") {
Usage();
} else if (name == "verbose") {
talk_base::LogMessage::LogToDebug(talk_base::LS_VERBOSE);
} else if (name == "xmpp-host") {
gXmppHost = value;
} else if (name == "xmpp-port") {
gXmppPort = ParseIntArg(name, value);
} else if (name == "xmpp-use-tls") {
gXmppUseTls = ParseBoolArg(name, value)?
buzz::TLS_REQUIRED : buzz::TLS_DISABLED;
} else {
Error(std::string("unknown option: ") + name);
}
index += 1;
}
if (index >= argc)
Error("bad arguments");
gUserJid = buzz::Jid(argv[index++]);
if (!gUserJid.IsValid())
Error("bad arguments");
char path[MAX_PATH];
#if WIN32
GetCurrentDirectoryA(MAX_PATH, path);
#else
if (NULL == getcwd(path, MAX_PATH))
Error("Unable to get current path");
#endif
std::cout << "Directory: " << std::string(path) << std::endl;
buzz::Jid gSrcJid;
buzz::Jid gDstJid;
std::string gSrcFile;
std::string gDstFile;
bool as_server = true;
if (index + 2 == argc) {
ParseFileArg(argv[index], &gSrcJid, &gSrcFile);
ParseFileArg(argv[index+1], &gDstJid, &gDstFile);
if(gSrcJid.Str().empty() == gDstJid.Str().empty())
Error("Exactly one of source JID or destination JID must be empty.");
as_server = false;
} else if (index != argc) {
Error("bad arguments");
}
std::cout << "Password: ";
SetConsoleEcho(false);
std::cin >> gUserPass.password();
SetConsoleEcho(true);
std::cout << std::endl;
talk_base::InitializeSSL();
CustomXmppPump pump;// Log in.
pump.client()->SignalLogInput.connect(&debug_log_, &DebugLog::Input);
pump.client()->SignalLogOutput.connect(&debug_log_, &DebugLog::Output);
pump.DoLogin(LoginSettings(), new XmppSocket(gXmppUseTls), 0);
// Wait until login succeeds.
std::vector<uint32> ids;
ids.push_back(MSG_LOGIN_COMPLETE);
ids.push_back(MSG_LOGIN_FAILED);
if (MSG_LOGIN_FAILED == Loop(ids))
FatalError("Failed to connect");{
talk_base::scoped_ptr<buzz::XmlElement> presence(
new buzz::XmlElement(buzz::QN_PRESENCE));
presence->AddElement(new buzz::XmlElement(buzz::QN_PRIORITY));
presence->AddText("-1", 1);
pump.SendStanza(presence.get());
}
std::string user_jid_str = pump.client()->jid().Str();
std::cout << "Logged in as " << user_jid_str << std::endl;
// Prepare the random number generator.
talk_base::InitRandom(user_jid_str.c_str(), user_jid_str.size());
// Create the P2P session manager.
talk_base::BasicNetworkManager network_manager;
AutoPortAllocator allocator(&network_manager, "pcp_agent");
allocator.SetXmppClient(pump.client());
cricket::SessionManager session_manager(&allocator);
#ifdef USE_SSL_TUNNEL
cricket::SecureTunnelSessionClient session_client(pump.client()->jid(),
&session_manager);
if (!session_client.GenerateIdentity())
FatalError("Failed to generate SSL identity");
#else // !USE_SSL_TUNNEL
cricket::TunnelSessionClient session_client(pump.client()->jid(),
&session_manager);
#endif // USE_SSL_TUNNEL
cricket::SessionManagerTask *receiver =
new cricket::SessionManagerTask(pump.client(), &session_manager);
receiver->EnableOutgoingMessages();
receiver->Start();
bool success = true;
if (as_server) {// Establish the appropriate connection.
pump.Serve(&session_client);
} else {
talk_base::StreamInterface* stream = NULL;
std::string filename;
bool sending;
if (gSrcJid.Str().empty()) {
std::string message("recv:");
message.append(gDstFile);
stream = session_client.CreateTunnel(gDstJid, message);
filename = gSrcFile;
sending = true;
} else {
std::string message("send:");
message.append(gSrcFile);
stream = session_client.CreateTunnel(gSrcJid, message);
filename = gDstFile;
sending = false;
}
success = pump.ProcessStream(stream, filename, sending);
}
if (success) {
// Wait until the copy is done.
ids.clear();
ids.push_back(MSG_DONE);
ids.push_back(MSG_LOGIN_FAILED);
Loop(ids);
}
pump.DoDisconnect();// Log out.
return 0;
}
最佳答案
好的,所以这个错误是因为错误的完整 JID 和错误的代码执行。 PCP 应按照提供的顺序运行:
发生此错误是因为正在使用的代码执行方法阻止了帐户被视为可用。这与服务器错误或缺少谷歌服务无关(很抱歉怀疑你,谷歌)。至于优先级为 -1,这也与错误无关(在阅读 XMPP 后了解到)。
关于c++ - LibJingle pcp_main.cc 503 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11199120/
Libjingle 看起来非常强大,并且附带了一堆示例程序和扩展。但我一直无法使用它,而且我在 IRC 上交谈过的人告诉我,他们发现该 API 很困惑,我应该使用其他东西。 但我愿意再试一次。有人有好
我下载了WebRTC的源代码,但在WebRTC上找不到任何libjingle的代码,也找不到WebRTC如何使用libjingle(在WebRTC的代码中找不到诸如XmppTask类的代码) 谁能给我
编译 libjingle 时,在 swtoolkit 上运行 'hammer.sh',我收到以下导入错误, root@den-pc:~/tejesh/libjingle-0.6.14/talk# sh
我下载并安装了libjingle-0.5.2.zip,并根据README还下载并安装了swtoolkit.0.9.1.zip、scons-local-2.1.0.alpha.20101125.tar.
我有一个基于 libjingle 并从 android 调用的 google talk 客户端,每次我尝试登录时,这就是我得到的一切 RECV RECV
据我们所知,xmpp 框架可用于 facebook 和 gmail 文本聊天。我发现 libjingle 用于 gmail 联系人的视频聊天。我们也可以将 libjingle 用于 Facebook
好的,尝试在 2 台装有 ubuntu 11.10 的笔记本电脑上运行 libjingle-0.6.14 中编译的“call”程序, 当我从第一台笔记本电脑登录,并从另一台笔记本电脑再次登录(使用不同
libjingle's developer guide相当含糊地提到了 libjingle 的 Jingle 实现与 XEP-0166 规范之间的不兼容性。它还提到它与 XEP-0167、XEP-01
几天来,我一直在努力让 PCP LibJingle 示例发挥作用。在解决了所有编译和运行错误之后,我现在遇到了一个我以前没有遇到过的错误。 当作为发送方或接收方运行程序时,程序会收到 503“服务不可
我想知道从 git checkout SDK 时如何获取 libjingle。我最终做的是在 build.gradle 中添加 libjingle 作为编译依赖: compile 'io.pristi
我正在开发 WebRTC iOS 应用程序以从网络摄像头接收视频/音频。只有网络摄像头发送视频和音频,移动设备不发送任何内容。 我正在使用来自 CocoaPods (v11177.2.0) 的 lib
好的,我正在尝试使用以下命令编译名为“pcp”的文件共享示例 wolfgang@den-pc:~/tejesh/libjingle-0.6.14/programs$ g++ -g -Wall -DP
我正在开发 native android WebRTC 客户端,该客户端支持从自定义设备流式传输音频(我正在通过蓝牙从该设备获取音频流)。我正在使用 libjingle 库来实现 WebRTC,我想知
我遵循了 libjingle 下载中包含的自述文件。安装所有第 3 方软件包并运行此命令: hammer.bat --jobs=6 --verbose --mode=all all_programs
我正在尝试将 io.pristine:libjingle 用于 WebRTC 项目之一。我在 Github 上找到了一个示例。 1- 我已经准备好我的 WebRTC 服务器,它通过用户身份验证从 Ch
我已从 https://code.google.com/p/webrtc/source/browse/trunk/talk 中 check out 代码我似乎找不到如何为 ARM (android)
伟大的开发者。我正在使用 io.pristine.libjingle:11139 的 webRTC 库进行视频通话。一切顺利,现在我只想打开手电筒,我研究了几乎所有与手电筒相关的问题,在那里我发现手电
所以我试图通过 webRTC 通过 socket.io 和 libjingle 将 Android 连接到浏览器,并且服务器在 Node.js 上运行。我面临的问题很奇怪。当 1 个客户端使用 And
仅在尝试在 64 位 下运行我的登录代码时,我是否无法登录 talk.google.com对于我的初步测试。 32 位工作正常。 启用日志记录宏和 siginput 日志记录后,我可以看到它失败的 X
我正在尝试在 Mac OSX Snow Leopard 上编译 libjingle。 INSTALL 文件像往常一样说到“./configure”、“make”和“make install”。但是 m
我是一名优秀的程序员,十分优秀!