2

我正在使用这里的代码示例

并在Debian中运行它

g++ -o tr ft_send.cpp -lgloox -pthread
./tr example@gmail.com/resource  ./file

然后它向我发送接受文件的请求,我按accept。但随后它打印

log: level: 0, area: 131072, <iq type='error' to='sender@gmail.com/glooxsendf1E777155' id='uid:502f38b2:2ae8944a' from='mmariya123@gmail.com/QIP9CA3B3AF'><error code='404' type='cancel'><item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>
ft request error
log: level: 0, area: 262144, </stream:stream>
ft_send: disconnected: 17
ce: 18

并与服务器断开连接。有什么问题?有谁能够帮我?可能是事情在

      f->addStreamHost( j->jid(), "192.168.100.20", 6666 );
      // you should obtain this using disco, really:
//       f->addStreamHost( JID( "reflector.amessage.eu" ), "reflector.amessage.eu", 6565 );
//       f->addStreamHost( JID( "proxy.jabber.org" ), "208.245.212.98", 7777 );

但我不知道如何纠正它。

4

0 回答 0