锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久精品二区,日韩精品久久久久久久电影蜜臀,国产精品va久久久久久久http://www.shnenglu.com/wanghaiguang/category/20962.html閫嗘按琛岃垷錛屼笉榪涘垯閫zh-cnThu, 04 Sep 2014 19:10:53 GMTThu, 04 Sep 2014 19:10:53 GMT60Gloox鏂囦歡浼犺緭灝忚http://www.shnenglu.com/wanghaiguang/archive/2014/09/02/208206.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Tue, 02 Sep 2014 09:18:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2014/09/02/208206.htmlhttp://www.shnenglu.com/wanghaiguang/comments/208206.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2014/09/02/208206.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/208206.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/208206.html浣跨敤鐗堟湰錛?.1.10

浠婂ぉ寮勪簡涓涓婫loox涓嚜甯︾殑鏀跺彂鏂囦歡渚嬪瓙錛屾敹鍙戞枃浠剁殑渚嬪瓙閮芥槸濂戒嬌鐨勶紝鍙笉榪囷紝鍦ㄨ皟璇曡繃紼嬩腑闇瑕佹敞鎰忎竴浜涢棶棰橈紝涓嬮潰灝嗘垜閬囧埌鐨勯棶棰樺仛涓褰曪紙渚嬪瓙涓互In-Band Bytestreams鏂瑰紡鏀跺彂錛?/span>銆?/span>

1銆佸彂閫佹枃浠惰繃紼嬩腑閬囧埌404閿欒
<iq type='error' id='uid-8509a748-00000005' to='wanghaiguang@wanghaiguang-wk/glooxsendfile'from='www@192.168.60.67/Spark 2.6.3'><sixmlns='http://jabber.org/protocol/si' id='uid-8509a748-00000006' profile='http://jabber.org/protocol/si/profile/file-transfer'><file xmlns='http://jabber.org/protocol/si/profile/file-transfer' name='d:\offline.bmp' size='6998'/><feature xmlns='http://jabber.org/protocol/feature-neg'><x xmlns='jabber:x:data' type='form'><field type='list-single'var='stream-method'><option label='ibb'><value>http://jabber.org/protocol/ibb</value></option><option label='oob'><value>jabber:iq:oob</value></option><option label='s5b'><value>http://jabber.org/protocol/bytestreams</value></option><value/></field></x></feature></si><error code='404' type='cancel'><remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>

鍙互灝唅p鍦板潃鎹㈡垚鏈嶅姟鍣ㄥ悕縐拌瘯璇?/span>
JID j( "www@192.168.60.67/gloox" );——> JID j( "www@wanghaiguang-wk/gloox" );

2銆?/strong>鍙戦佹枃浠惰繃紼嬩腑閬囧埌503閿欒
<iq type='error' id='uid-8663a748-00000005' from='www@wanghaiguang-wk/glooxsend'to='wanghaiguang@wanghaiguang-wk/glooxsendfile'><si xmlns='http://jabber.org/protocol/si' id='uid-8663a748-00000006' profile='http://jabber.org/protocol/si/profile/file-transfer'><file xmlns='http://jabber.org/protocol/si/profile/file-transfer' name='d:\offline.bmp' size='6998'/><feature xmlns='http://jabber.org/protocol/feature-neg'><x xmlns='jabber:x:data' type='form'><field type='list-single' var='stream-method'><option label='ibb'><value>http://jabber.org/protocol/ibb</value></option><option label='oob'><value>jabber:iq:oob</value></option><option label='s5b'><value>http://jabber.org/protocol/bytestreams</value></option><value/></field></x></feature></si><error code='503' type='cancel'><service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>

榪欎釜闂鍙兘鏄敱浜庝綘鎺ユ敹绔殑璧勬簮鍚嶇О涓庡彂閫佺涓嶅尮閰?/span>
//鎺ユ敹绔櫥褰曠殑jid
JID jid( "www@192.168.60.67/glooxsendfile" );
 j = new Client( jid, "111" );

//鍙戦佺鐨刯id鍚嶇О錛堝彂閫佺粰瀵規(guī)柟鐨刯id鍚嶇О錛?/span>
JID j( "www@wanghaiguang-wk/gloox" );
if( j.resource().empty() )
{
     printf( "error: need full jid\n" );
     return 1;
}


]]>
GLOOX 1.0.10娉ㄥ唽闂http://www.shnenglu.com/wanghaiguang/archive/2014/08/28/208165.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Thu, 28 Aug 2014 09:59:00 GMThttp://www.shnenglu.com/wanghaiguang/archive/2014/08/28/208165.htmlhttp://www.shnenglu.com/wanghaiguang/comments/208165.htmlhttp://www.shnenglu.com/wanghaiguang/archive/2014/08/28/208165.html#Feedback0http://www.shnenglu.com/wanghaiguang/comments/commentRss/208165.htmlhttp://www.shnenglu.com/wanghaiguang/services/trackbacks/208165.html寮曟枃錛?/strong>

璋冭瘯GLOOX 1.0.10鐨勬敞鍐屽姛鑳介璐逛簡涓浜涘姛澶傛諱綋閫昏緫濡侴LOOX鑷甫鐨勪緥瀛愪竴鏍鋒槸姣棤鐤戦棶鐨勶紝浣嗘槸鐓ф惉渚嬪瓙鍙堟槸涓嶈兘瀹屾垚娉ㄥ唽鐨勶紝榪斿洖閿欒鐮佷負(fù)4------RegistrationBadRequest銆?span style="font-size: 14pt;">絎旇呬竴寮濮?/span>鍦ㄧ綉涓婄媯鎼滆В鍐蟲柟妗堬紝璧勬枡灝戜箣鍙堝皯錛屾湁寤鴻閲嶅啓C(jī)lient::handleNormalNode鍑芥暟錛堢洰鐨勬槸紱佹SASL璁よ瘉錛夌殑錛屾湁鐩存帴緇ф壙Client閲嶅啓C(jī)lient::handleNormalNode鍑芥暟鐨勶紝浣嗛兘娌¤鍒扮偣瀛愪笂銆傜粡榪囦竴孌墊椂闂寸殑鐮旂┒錛屽湪GLOOX鐨?/span>maillist涓婂緱鍒板惎鍙戯紝欏哄埄瀹屾垚娉ㄥ唽銆傜幇灝嗚В鍐蟲柟妗堣褰曚笅鏉ワ細(xì)


鐜

瀹㈡埛绔細(xì)GLOOX1.0.1.0 VS2008

鏈嶅姟鍣細(xì)OPENFIRE 榛樿瀹夎


瀵逛簬GLOOX鑷甫鐨勬敞鍐屼緥瀛愪笉鑳芥甯告敞鍐岀殑闂鏈変漢鍦ㄩ偖浠跺垪琛ㄩ噷鎻愬嚭鏉ャ備竴涓摜浠繖鏍峰洖絳旓細(xì)

Ok, I've found what the problem was 
In openFire server parameters, Anonymous Login => Disabled !!! 

鎰忔濇槸瑕?/span>紱佺敤openFire鏈嶅姟鍣ㄩ噷鐨勯夐」”娉ㄥ唽鍜岀櫥褰?#8220;鐨?#8221;鍖垮悕鐧誨綍“欏?/strong>銆?/span>

絎旇呮寜姝よ鏄庣鐢ㄨ閫夐」錛屾灉鐒舵敞鍐屾垚鍔熴?/span>

榪欒鏄庡紑濮嬬殑娉ㄥ唽澶辮觸鏄拰鍖垮悕鐧誨綍鏈夊叧緋葷殑銆傛垜浠潵鐪嬩竴涓嬪紩鐢╮egistration_expmple渚嬪瓙鐧誨綍澶辮觸鏃剁殑XML嫻侊細(xì)

S->C錛氭湇鍔″櫒榪斿洖緇欏鎴風(fēng)鏀寔鐨勮璇佹満鍒訛細(xì)

<stream:features xmlns:stream='http://etherx.jabber.org/streams'><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns='http://jabber.org/features/compress'><method>zlib</method></compression><auth xmlns='http://jabber.org/features/iq-auth'/><register xmlns='http://jabber.org/features/iq-register'/></stream:features> 

 

浠庝笂闈ML嫻佷腑鎴戜滑鍙互鐪嬪埌錛岄粯璁penFire鏀寔鍥涚璁よ瘉鏈哄埗錛屽垎鍒槸錛欴IGEST-MD5銆丳LAIN銆丄NONYMOUS銆丆RAM-MD5銆傜劧鍚庢垜浠湅GLOOX瀹㈡埛绔殑鍝嶅簲嫻侊細(xì)

C->S錛氬鎴風(fēng)榪斿洖閫夋嫨鐨勮璇佹柟寮忥細(xì)

<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='ANONYMOUS'/>

鍙互鐪嬪嚭錛屽鎴風(fēng)”鏃犺?#8220;鐨勯夋嫨浜?#8221;鍖垮悕“--
'ANONYMOUS'鏂瑰紡

鎺ヤ笅鏉ョ殑嫻佺▼灝辨槸瀹㈡埛绔?#8221;鏃犺?#8220;鐨勯夋嫨浜嗕互鍖垮悕鐨勬柟寮忕櫥褰曚簡鏈嶅姟鍣紝鐒跺悗鍐嶅彂閫佹敞鍐岃姹傦紝璇鋒眰濡備笅錛?/p>

<iq id='uid:4e69eccd:00006784' type='set' from='447e0585@zxl/447e0585' xmlns='jabber:client'><query xmlns='jabber:iq:register'><username>bbaxiao</username><password>123456</password><name>test2</name><email>163@gmail.com</email></query></iq> 

鎴戜滑鐪嬪埌錛孖Q鑺傞噷鍖呭惈“form”灞炴э紝鍗沖鎴風(fēng)鍖垮悕韜喚鏍囪瘑銆?/span>

娉ㄦ剰錛屼竴涓鎴風(fēng)宸茬粡浠ヤ竴涓韓浠斤紙鐢辨湇鍔″櫒涓存椂鍒嗛厤鐨勪竴涓狫ID錛夌櫥褰曪紝寤虹珛浜嗕細(xì)璇濓紝鍦ㄦ湇鍔″櫒涓婃垜浠細(xì)鐪嬪埌榪欎釜浼?xì)璇濆Q屽茍涓旀湇鍔″櫒鍙戦佸績璺充竴鐩寸淮鎶よ繖涓細(xì)璇濄傝繖縐嶆儏鍐典笅錛岃繖涓鎴風(fēng)鍐嶅彂閫佹敞鍐岃姹傦紙鍙︿竴涓韓浠斤級寤虹珛涓庢湇鍔″櫒鐨勮繛鎺ユ槸涓嶈鍏佽鐨勩傚叿浣撹鍙傝僗EP-0077錛圛n-Band Registration錛夛細(xì)鎴戜滑鍏蟲敞榪欎袱孌碉細(xì)

If the entity cancels its registration with its "home" server (i.e., the server at which it has maintained its XMPP account), then the entity SHOULD NOT include a 'from' or 'to' address in the remove request the server SHOULD then return a <not-authorized/> stream error and terminate all active sessions for the entity. The server SHOULD perform the remove based on the bare JID <localpart@domain.tld> associated with the current session or connection over which it received the remove request. If the server is an instant messaging and presence server that conforms to XMPP IM [8], the server SHOULD also cancel all existing presence subscriptions related to that entity (as stored in the entity's roster). 
 
If the entity cancels its registration with a service other than its home server, its home server MUST stamp a 'from' address on the remove request, which in accordance with XMPP Core will be the entity's full JID <localpart@domain.tld/resource>. The service MUST perform the remove based on the bare JID <localpart@domain.tld> portion of the 'from' address. 

If the entity cancels its registration with its "home" server (i.e., the server at which it has maintained its XMPP account), then the entity SHOULD NOT include a 'from' or 'to' address in the remove request the server SHOULD then return a <not-authorized/> stream error and terminate all active sessions for the entity. The server SHOULD perform the remove based on the bare JID <localpart@domain.tld> associated with the current session or connection over which it received the remove request. If the server is an instant messaging and presence server that conforms to XMPP IM [8], the server SHOULD also cancel all existing presence subscriptions related to that entity (as stored in the entity's roster).  
  
If the entity cancels its registration with a service other than its home server, its home server MUST stamp a 'from' address on the remove request, which in accordance with XMPP Core will be the entity's full JID <localpart@domain.tld/resource>. The service MUST perform the remove based on the bare JID <localpart@domain.tld> portion of the 'from' address.  

 

鎰忔濇槸璇存敞鍐岃姹備笉鑳藉寘鍚?#8220;from”灞炴с?/span>

姝e父鐨勬敞鍐屾祦濡備笅錛?/span>

<iq id='uid:4e69eccd:00003d6c' type='set' xmlns='jabber:client'><query xmlns='jabber:iq:register'><username>bbaxiao</username><password>123456</password><name>test2</name><email>163@gmail.com</email></query></iq> 

---------------------------

緇間笂鎵榪幫紝瑙e喅鏂規(guī)濡備笅錛?/span>

涓銆佸叧闂璷penFire鐨勫尶鍚嶇櫥褰曞姛鑳姐俕_^……

浜屻佺姝LOOX鍖垮悕璁よ瘉鍔熻兘銆?/span>

file:client.cpp 
 
fun: int Client::getSaslMechs( Tag* tag ) 
 
line:423 
 
//灝?23琛屾敞閲婃帀鍗沖彲銆?nbsp;
422錛歩f( tag->hasChildWithCData( mech, "ANONYMOUS" ) ) 
423      //mechs |= SaslMechAnonymous; 

閲嶆柊緙栬瘧鐢熸垚DLL鍗沖彲銆?/span>

涓夈佹墜鍔ㄨ緗瓽LOOX瀹㈡埛绔疭ASL璁よ瘉鏈哄埗

鍦ㄨ皟鐢╦->connect()涔嬪墠璁劇疆SASL璁よ瘉鏈哄埗錛屾瘮濡傝緗負(fù)“DIGEST-MD5”


j->setSASLMechanisms(SaslMechDigestMd5);

榪欑鏂瑰紡鐨勭己鐐規(guī)槸闇瑕佸厛紜畾鏈嶅姟鍣ㄦ敮鎸佺殑璁よ瘉鏈哄埗銆?/span>

鍥涖佹牴鎹甔EP-0077鎵榪幫紝鍗充嬌鍏跺悕鐧誨綍錛屾敞鍐屾祦鍙涓嶅甫“from”灞炴у簲璇ヤ篃鍙互銆傛墍浠ユ垜浠澶勭悊鍙戝嚭鐨勬敞鍐屾祦錛屽幓闄?#8220;from”灞炴ч噸鏂板彂閫佹敞鍐屾祦鍗沖彲銆?/span>


鏈枃杞嚜錛?/strong>http://blog.csdn.net/abcpanpeng/article/details/7370974




]]>
精品久久久久中文字幕日本| 亚洲国产高清精品线久久| 色综合久久久久无码专区| 久久久亚洲裙底偷窥综合| 99久久99久久精品国产片果冻| 婷婷伊人久久大香线蕉AV | 2022年国产精品久久久久| 久久精品国产精品亚洲毛片| 国产精品久久久天天影视香蕉| 久久精品无码一区二区日韩AV| 怡红院日本一道日本久久 | 久久99精品久久久久久久不卡| www.久久热.com| 午夜精品久久久久成人| 精品久久久噜噜噜久久久| 色欲综合久久躁天天躁| 久久久久亚洲Av无码专| 久久性精品| 天天久久狠狠色综合| 亚洲精品乱码久久久久久按摩| 国产精品美女久久久久av爽| 亚洲精品无码久久久久sm| 久久精品国产色蜜蜜麻豆| 久久综合给合久久狠狠狠97色69 | 欧美日韩成人精品久久久免费看| 性欧美丰满熟妇XXXX性久久久| 久久av高潮av无码av喷吹| 精品久久8x国产免费观看| 久久午夜无码鲁丝片秋霞| 国产精品综合久久第一页 | 精品久久久久久无码人妻蜜桃| 久久这里只有精品18| 99久久做夜夜爱天天做精品| 久久国产精品视频| 亚洲国产精品久久久久| 狠狠色丁香久久综合五月| 久久精品中文无码资源站| 久久精品国产亚洲av水果派| 久久天堂AV综合合色蜜桃网 | 无码国内精品久久人妻蜜桃| 奇米影视7777久久精品人人爽 |