Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/net-im/gloox/files/patch-src__examples__linklocal_example.cpp
16461 views
1
--- src/examples/linklocal_example.cpp.orig 2015-08-11 14:37:51 UTC
2
+++ src/examples/linklocal_example.cpp
3
@@ -111,15 +111,15 @@ class LinkLocalExample : public LinkLoca
4
for( ; it != services.end(); ++it )
5
{
6
printf( "%s:\t%s.%s%s on interface %d\n", (*it).flag == LinkLocal::AddService ? "Added" : "Removed", (*it).service.c_str(), (*it).regtype.c_str(),
7
- (*it).domain.c_str(), (*it).interface );
8
+ (*it).domain.c_str(), (*it).iface );
9
if( !m_fClient /*&& (*it)->flag == LinkLocal::AddService && (*it)->service != "js@pitufo"*/ )
10
{
11
printf( "setting up new local client and connecting to %s.%s%s on interface %d\n",
12
- (*it).service.c_str(), (*it).regtype.c_str(), (*it).domain.c_str(), (*it).interface );
13
+ (*it).service.c_str(), (*it).regtype.c_str(), (*it).domain.c_str(), (*it).iface );
14
m_fClient = new LinkLocal::Client( JID( "js@pitufo" ) );
15
m_fClient->logInstance().registerLogHandler( LogLevelDebug, LogAreaAll, this );
16
m_fClient->registerConnectionListener( this );
17
- if( !m_fClient->connect( (*it).service, (*it).regtype, (*it).domain, (*it).interface ) )
18
+ if( !m_fClient->connect( (*it).service, (*it).regtype, (*it).domain, (*it).iface ) )
19
{
20
printf( "m_fClient->connect() failed\n" );
21
}
22
23