锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品久久久久影院嫩草
,国产精品伦理久久久久久,亚洲精品tv久久久久 http://www.shnenglu.com/wanghaiguang/archive/2016/08/18/214201.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Thu, 18 Aug 2016 03:20:00 GMT http://www.shnenglu.com/wanghaiguang/archive/2016/08/18/214201.html http://www.shnenglu.com/wanghaiguang/comments/214201.html http://www.shnenglu.com/wanghaiguang/archive/2016/08/18/214201.html#Feedback 0 http://www.shnenglu.com/wanghaiguang/comments/commentRss/214201.html http://www.shnenglu.com/wanghaiguang/services/trackbacks/214201.html 涓銆丼WIG鐜鎼緩 1銆?涓嬭澆Swig for Windows錛歨ttp://www.swig.org/download.html
2銆?瑙e帇 .zip 鏂囦歡鍒扮洰褰曪紝姣斿錛欴:\backupsoftware
3銆?娣誨姞鐜鍙橀噺鍒皃ath錛?姣斿錛?D:\backupsoftware\swigwin-3.0.10
4銆?綆鍗曟祴璇曞畨瑁呮槸鍚︽垚鍔燂細
鎵撳紑Dos錛屽湪鍛戒護琛屾墽琛岋細 swig --help, 鏄劇ず Target Language Options鍗寵〃鏄庡畨瑁呮垚鍔熴?/span>浜屻佷互c++涓轟緥 1銆佺紪鍐檆++婧愭枃浠?/span>// example.h #include <iostream> using namespace std; class Example{ public : void say_hello(); };
// example.cpp #include "example.h" void Example::say_hello() { printf("hello"); }
2銆佸啀鍐欎竴涓猻wig妯″潡瀹氫箟鏂囦歡濡備笅 %module example %{ #include "example.h" %} %include "example.h"
3銆侀氳繃鍛戒護琛岃繍琛岋細$ swig -python -c++ example.i 濡傛灉鏄嬌鐢–婧愮爜錛屽垯閫夐」錛? swig - Python example.i
榪欐牱浼氬垱寤轟袱涓笉鍚岀殑鏂囦歡錛歟xample_wrap.cxx錛堝鏋滅敤c婧愮爜鏄痚xample_wrap.c錛夛紝鍜宲ython鏂囦歡example.py銆?/span>
4銆佷嬌鐢╬ython.distutils鐢熸垚妯″潡鍔ㄦ佸簱 python鑷甫涓涓猟istutils宸ュ叿錛屽彲浠ョ敤瀹冩潵鍒涘緩python鐨勬墿灞曟ā鍧椼備嬌鐢ㄥ畠涔熷緢綆鍗曪紝鍙渶瑕佸厛瀹氫箟涓涓厤緗枃浠訛紝閫氬父鏄懡鍚嶄負setup.py 錛屽涓嬶細 # !/usr/bin/env python """ setup.py file for SWIG C\+\+/Python example """ from distutils.core import setup, Extension example_module = Extension( ' _example ' , sources=[ ' example.cpp ' , ' example_wrap.cxx ' ,], ) setup (name = ' example ' , version = ' 0.1 ' , author = " www " , description = """ Simple swig C\+\+/Python example """ , ext_modules = [example_module], py_modules = [ " example " ], )
娉細 swig鐢熸垚鐨勬墿灞曟ā鍧楀璞″悕蹇呴』浣跨敤python妯″潡鍚嶅茍鍦ㄥ墠闈㈠姞涓婁笅鍒掔嚎_錛屽垰鎵嶆垜浠氳繃swig鐢熸垚鐨刾ython鏂囦歡鏄痚xample.py錛屾墍浠ヨ繖閲岀殑妯″潡瀵硅薄鍚嶅繀欏繪槸'_example',鍚﹀垯鏃犳硶欏哄埄緙栬瘧銆?/span>5銆佺紪璇?br /> 鍛戒護琛屼腑灝嗗綋鍓嶅伐浣滅洰褰曞垏鎹㈠埌鏂囦歡example.cpp, example_wrap.cxx ,example.py,setup.py鎵鍦ㄧ殑鐩綍,鐒跺悗杈撳叆浠ヤ笅鍛戒護: python setup.py build_ext --inplace 浼氬湪鏈洰褰曚笅鐢熸垚_example.pyd妯″潡銆?br /> 6銆佹祴璇?/span>import examlpe example.Example().say_hello() 娉?/span>錛氬鏋滃鍏ユā鍧楀け璐ワ紝闇瑕佸皢妯″潡鎵鍦ㄨ礬寰勬坊鍔犲埌sys.path涓紝鍦ㄦ瀵煎叆灝變細鎴愬姛 ]]> UISearchBar鎺т歡錛堣漿杞斤級 http://www.shnenglu.com/wanghaiguang/archive/2015/03/04/209924.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Wed, 04 Mar 2015 11:23:00 GMT http://www.shnenglu.com/wanghaiguang/archive/2015/03/04/209924.html http://www.shnenglu.com/wanghaiguang/comments/209924.html http://www.shnenglu.com/wanghaiguang/archive/2015/03/04/209924.html#Feedback 0 http://www.shnenglu.com/wanghaiguang/comments/commentRss/209924.html http://www.shnenglu.com/wanghaiguang/services/trackbacks/209924.html 闃呰鍏ㄦ枃 ]]> (杞澆)鎺ㄨ崘錛佸浗澶栫▼搴忓憳鏁寸悊鐨?C++ 璧勬簮澶у叏 http://www.shnenglu.com/wanghaiguang/archive/2014/11/14/208873.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Fri, 14 Nov 2014 00:58:00 GMT http://www.shnenglu.com/wanghaiguang/archive/2014/11/14/208873.html http://www.shnenglu.com/wanghaiguang/comments/208873.html http://www.shnenglu.com/wanghaiguang/archive/2014/11/14/208873.html#Feedback 0 http://www.shnenglu.com/wanghaiguang/comments/commentRss/208873.html http://www.shnenglu.com/wanghaiguang/services/trackbacks/208873.html 闃呰鍏ㄦ枃 ]]> MFC wcslen鑾峰彇涓枃闀垮害 http://www.shnenglu.com/wanghaiguang/archive/2014/10/10/208529.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Fri, 10 Oct 2014 03:53:00 GMT http://www.shnenglu.com/wanghaiguang/archive/2014/10/10/208529.html http://www.shnenglu.com/wanghaiguang/comments/208529.html http://www.shnenglu.com/wanghaiguang/archive/2014/10/10/208529.html#Feedback 0 http://www.shnenglu.com/wanghaiguang/comments/commentRss/208529.html http://www.shnenglu.com/wanghaiguang/services/trackbacks/208529.html 涓嶇煡閬撳ぇ瀹舵湁娌℃湁鎴戣繖縐嶄綋楠?澶у鍏堢湅鐪嬩笅闈㈣繖孌典唬鐮?int fp=_wopen(L"Hello.dat",O_BINARY | O_CREAT | O_TRUNC | O_RDWR);if (fp==-1) return ; write(fp,L"123涓浗浜?,wcslen(L"123涓浗浜?)); close(fp);
涓婇潰榪欐浠g爜涓嶇煡閬撳ぇ瀹剁湅鍑轟粈涔圔UG鏉ヤ簡.濡傛灉澶у鐪嬩笉鍑烘瘺鐥呬篃涓嶈凍涓烘?鍥犱負榪欐槸鎴戜滑鐨勪範鎯鑷翠簡鎴戜滑鐨勯敊璇駭鐢?鍏堣鎴戞潵鍒嗘瀽涓涓媤rite鍚?涓嬮潰鏄痺rite鐨勫師鍨? int write( int handle, const void *buffer, unsigned int count ); 鍙傛暟: handle 宸叉墦寮鎴栧凡鍒涘緩鐨勬枃浠跺彞鏌?/span>buffer 寰呭啓鍏ョ殑鏁版嵁 count 寰呭啓鍏ョ殑鏁版嵁澶у皬 鐜板湪鍒嗘瀽涓轟粈涔堜笂闈㈢殑閭d唬鐮佹湁bug,鍏跺疄涓昏闂灝卞湪涓涓猙uffer,鍜宑ount. 濡傛灉鎴戜滑鍐欏叆涓涓狝nsi瀛楃涓?涓婇潰鐨勪唬鐮佹敼鎴愮浉搴旂殑褰㈠紡紜疄娌℃湁閿? 浣嗗鏋滄槸鍐欏叆涓涓瀛楃涓?閭d箞涓婇潰鐨勪唬鐮佸氨涓嶄弗鏍?鍘熷洜灝卞湪浜巆ount. 鎴戜滑棣栧厛鐪嬩竴涓媠trlen鍜?/span>wcslen ,濡傛灉浣跨敤strlen,涓鑸儏鍐典笅,鎴戜滑鐩存帴浣滀負瀛楃涓茬殑闀垮害, 鑰屼嬌鐢?/span>wcslen ,浣犱細鍙戠幇,寰楀嚭鐨勪笉鏄瓧絎︿覆鐨勯暱搴﹁屾槸瀛楃鐨勪釜鏁? 榪欏氨鏄棶棰樼殑鎵鍦?涓鑸儏鍐典笅.char鐨勯暱搴︽槸1,榪欐槸鐢╯izeof(char)榪愮畻鍑烘潵鐨勭粨鏋? len=strlen(str)*sizeof(char);鑰屾垜浠竴鑸儏鍐典笅,閮藉彧鐢╯trlen(str)鏉ョ瓑浠?榪欏氨鏄鉤鏃剁殑涔犳儻. 姝f槸鐢變簬榪欎釜涔犳儻鎵寮曟潵鐨勯棶棰?榪欎釜涔犳儻騫朵笉閫傜敤浜庡瀛楃涓?鍥犱負 wcslen (str)*sizeof(wchar_t)騫朵笉絳変簬 wcslen (strl).榪欏氨鏄範鎯墍寮曡搗鐨勯敊璇? 璇村埌榪欓噷鎴戞兂澶у閮芥槑鐧戒簡.鎴戝湪榪欓噷鎶婅繖縐嶄範鎯О涔嬩負涓嶈壇涔犳儻.鎵浠ュぇ瀹朵互鍚庡湪璁$畻瀛楃涓查暱搴︾殑鏃跺?鍗冧竾涓嶈兘綆鑰岀畝涔?涓瀹氳len=strlen(str)*sizeof(char),len= wcslen (str)*sizeof(wchar_t). 涓嶈鍐嶇姱榪欑涔犳儻鎬х殑浣庣駭閿欒. 鏈枃杞嚜錛?a >http://blog.csdn.net/aylixuan/article/details/6130820 ]]> Gloox鏂囦歡浼犺緭灝忚 http://www.shnenglu.com/wanghaiguang/archive/2014/09/02/208206.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Tue, 02 Sep 2014 09:18:00 GMT http://www.shnenglu.com/wanghaiguang/archive/2014/09/02/208206.html http://www.shnenglu.com/wanghaiguang/comments/208206.html http://www.shnenglu.com/wanghaiguang/archive/2014/09/02/208206.html#Feedback 0 http://www.shnenglu.com/wanghaiguang/comments/commentRss/208206.html http://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鍚嶇О錛堝彂閫佺粰瀵規柟鐨刯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 GMT http://www.shnenglu.com/wanghaiguang/archive/2014/08/28/208165.html http://www.shnenglu.com/wanghaiguang/comments/208165.html http://www.shnenglu.com/wanghaiguang/archive/2014/08/28/208165.html#Feedback 0 http://www.shnenglu.com/wanghaiguang/comments/commentRss/208165.html http://www.shnenglu.com/wanghaiguang/services/trackbacks/208165.html 寮曟枃錛?/strong>
璋冭瘯GLOOX 1.0.10鐨勬敞鍐屽姛鑳介璐逛簡涓浜涘姛澶傛諱綋閫昏緫濡侴LOOX鑷甫鐨勪緥瀛愪竴鏍鋒槸姣棤鐤戦棶鐨勶紝浣嗘槸鐓ф惉渚嬪瓙鍙堟槸涓嶈兘瀹屾垚娉ㄥ唽鐨勶紝榪斿洖閿欒鐮佷負 4------RegistrationBadRequest 銆?span style="font-size: 14pt;">絎旇呬竴寮濮?/span>鍦ㄧ綉涓婄媯鎼滆В鍐蟲柟妗堬紝璧勬枡灝戜箣鍙堝皯錛屾湁寤鴻閲嶅啓Client::handleNormalNode鍑芥暟錛堢洰鐨勬槸紱佹SASL璁よ瘉錛夌殑錛屾湁鐩存帴緇ф壙Client閲嶅啓Client::handleNormalNode鍑芥暟鐨勶紝浣嗛兘娌¤鍒扮偣瀛愪笂銆傜粡榪囦竴孌墊椂闂寸殑鐮旂┒錛屽湪GLOOX鐨?/span>maillist 涓婂緱鍒板惎鍙戯紝欏哄埄瀹屾垚娉ㄥ唽銆傜幇灝嗚В鍐蟲柟妗堣褰曚笅鏉ワ細
鐜
瀹㈡埛绔細GLOOX1.0.1.0 VS2008
鏈嶅姟鍣細OPENFIRE 榛樿瀹夎
瀵逛簬GLOOX鑷甫鐨勬敞鍐屼緥瀛愪笉鑳芥甯告敞鍐岀殑闂鏈変漢鍦ㄩ偖浠跺垪琛ㄩ噷鎻愬嚭鏉ャ備竴涓摜浠繖鏍峰洖絳旓細
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嫻侊細
S->C錛氭湇鍔″櫒榪斿洖緇欏鎴風鏀寔鐨勮璇佹満鍒訛細
< 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瀹㈡埛绔殑鍝嶅簲嫻侊細
C->S錛氬鎴風榪斿洖閫夋嫨鐨勮璇佹柟寮忥細
< auth xmlns ='urn:ietf:params:xml:ns:xmpp-sasl' mechanism ='ANONYMOUS' />
鍙互鐪嬪嚭錛屽鎴風”鏃犺?#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”灞炴э紝鍗沖鎴風鍖垮悕韜喚鏍囪瘑銆?/span>
娉ㄦ剰錛屼竴涓鎴風宸茬粡浠ヤ竴涓韓浠斤紙鐢辨湇鍔″櫒涓存椂鍒嗛厤鐨勪竴涓狫ID錛夌櫥褰曪紝寤虹珛浜嗕細璇濓紝鍦ㄦ湇鍔″櫒涓婃垜浠細鐪嬪埌榪欎釜浼氳瘽錛屽茍涓旀湇鍔″櫒鍙戦佸績璺充竴鐩寸淮鎶よ繖涓細璇濄傝繖縐嶆儏鍐典笅錛岃繖涓鎴風鍐嶅彂閫佹敞鍐岃姹傦紙鍙︿竴涓韓浠斤級寤虹珛涓庢湇鍔″櫒鐨勮繛鎺ユ槸涓嶈鍏佽鐨勩傚叿浣撹鍙傝僗EP-0077錛圛n-Band Registration錛夛細鎴戜滑鍏蟲敞榪欎袱孌碉細
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喅鏂規濡備笅錛?/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璁よ瘉鏈哄埗錛屾瘮濡傝緗負“DIGEST-MD5”
j->setSASLMechanisms(SaslMechDigestMd5);
榪欑鏂瑰紡鐨勭己鐐規槸闇瑕佸厛紜畾鏈嶅姟鍣ㄦ敮鎸佺殑璁よ瘉鏈哄埗銆?/span>
鍥涖佹牴鎹甔EP-0077鎵榪幫紝鍗充嬌鍏跺悕鐧誨綍錛屾敞鍐屾祦鍙涓嶅甫“from”灞炴у簲璇ヤ篃鍙互銆傛墍浠ユ垜浠澶勭悊鍙戝嚭鐨勬敞鍐屾祦錛屽幓闄?#8220;from”灞炴ч噸鏂板彂閫佹敞鍐屾祦鍗沖彲銆?/span>
鏈枃杞嚜錛?/strong>http://blog.csdn.net/abcpanpeng/article/details/7370974
]]>iOS 瑙e喅NSString杞崲涓篘SURL鏃跺寘鍚腑鏂囧瓧絎?/title> http://www.shnenglu.com/wanghaiguang/archive/2014/08/18/208048.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Mon, 18 Aug 2014 01:45:00 GMT http://www.shnenglu.com/wanghaiguang/archive/2014/08/18/208048.html http://www.shnenglu.com/wanghaiguang/comments/208048.html http://www.shnenglu.com/wanghaiguang/archive/2014/08/18/208048.html#Feedback 0 http://www.shnenglu.com/wanghaiguang/comments/commentRss/208048.html http://www.shnenglu.com/wanghaiguang/services/trackbacks/208048.html NSString涓鏋滃寘鎷腑鏂囧瓧絎︼紝鍦ㄨ漿鎹負NSURL鏃跺緱鍒扮殑鍊間負nil 瑙e喅鍔炴硶錛?/span>
NSString *urlString = [NSString stringWithFormat:@"http://api.openweathermap.org/data/2.5/weather?q=%@&units=imperial",cityName];
urlString = [urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSURL *url = [NSURL URLWithString:urlString];
NSLog(@"%@", url);
]]>iOS 鐩戝惉 Home閿紙杞澆錛?/title> http://www.shnenglu.com/wanghaiguang/archive/2014/08/01/207884.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Fri, 01 Aug 2014 05:31:00 GMT http://www.shnenglu.com/wanghaiguang/archive/2014/08/01/207884.html http://www.shnenglu.com/wanghaiguang/comments/207884.html http://www.shnenglu.com/wanghaiguang/archive/2014/08/01/207884.html#Feedback 0 http://www.shnenglu.com/wanghaiguang/comments/commentRss/207884.html http://www.shnenglu.com/wanghaiguang/services/trackbacks/207884.html 絎竴姝?
鍒涘緩2涓狽SNotificationCenter鐩戝惉
[[ NSNotificationCenter defaultCenter ] addObserver : self selector : @selector ( applicationWillResignActive :)
name : UIApplicationWillResignActiveNotification object : nil ]; //鐩戝惉鏄惁瑙﹀彂home閿寕璧風▼搴?
[[ NSNotificationCenter defaultCenter ] addObserver : self selector : @selector ( applicationDidBecomeActive :)
name : UIApplicationDidBecomeActiveNotification object : nil ]; //鐩戝惉鏄惁閲嶆柊榪涘叆紼嬪簭紼嬪簭.
絎簩姝?
瀹炵幇2涓狽SNotificationCenter鎵瑙﹀彂鐨勪簨浠舵柟娉?/span>
- ( void ) applicationWillResignActive :( NSNotification *) notification
{
printf ( "鎸夌悊璇存槸瑙﹀彂home鎸変笅\n" );
}
- ( void ) applicationDidBecomeActive :( NSNotification *) notification
{
printf ( "鎸夌悊璇存槸閲嶆柊榪涙潵鍚庡搷搴擻n" );
}
娉? 鍦╤ome閿Е鍙戝悗,AppDelegate鍝嶅簲鐨勬柟娉曚負:
- ( void ) applicationDidEnterBackground :( UIApplication *) application
{
/*
Use this method to release shared resources, save user data, invalidate timers,
and store enough application state information to restore your application to its current state in case it is terminated later.
If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
*/
}
鏈枃杞嚜錛?/span>http://blog.csdn.net/sqc3375177/article/details/9466687
鍏朵粬鐩稿叧淇℃伅錛?/div>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
NSLog(@"\n ===> 紼嬪簭寮濮?nbsp;!" );
return YES;
}
- (void )applicationWillResignActive:(UIApplication *)application
{
NSLog(@"\n ===> 紼嬪簭鏆傝 !" );
}
- (void )applicationDidEnterBackground:(UIApplication *)application
{
NSLog(@"\n ===> 紼嬪簭榪涘叆鍚庡彴 !" );
}
- (void )applicationWillEnterForeground:(UIApplication *)application
{
NSLog(@"\n ===> 紼嬪簭榪涘叆鍓嶅彴 !" );
}
- (void )applicationDidBecomeActive:(UIApplication *)application
{
NSLog(@"\n ===> 紼嬪簭閲嶆柊嬋媧?nbsp;!" );
}
- (void )applicationWillTerminate:(UIApplication *)application
{
NSLog(@"\n ===> 紼嬪簭鎰忓鏆傝 !" );
UIDevice *device = [UIDevice currentDevice];
}
棣栨榪愯 錛?/p>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
- (void)applicationDidBecomeActive:(UIApplication *)application
棣栨鍏抽棴錛坔ome錛夛細
- (void)applicationWillResignActive:(UIApplication *)application
- (void)applicationDidEnterBackground:(UIApplication *)application
鍐嶆榪愯錛?/span>
- (void)applicationWillEnterForeground:(UIApplication *)application
- (void)applicationDidBecomeActive:(UIApplication *)application
鍐嶆鍏抽棴錛?/span>
- (void)applicationWillResignActive:(UIApplication *)application
- (void)applicationDidEnterBackground:(UIApplication *)application
鏈枃杞嚜錛歨ttp://friendlysong.blog.163.com/blog/static/3225243920128144251666/
]]>
UIGestureRecognizer瀛︿範絎旇錛堣漿杞斤級鈥斺旀墜鍔胯瘑鍒姛鑳?/title> http://www.shnenglu.com/wanghaiguang/archive/2014/07/29/207854.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Tue, 29 Jul 2014 05:35:00 GMT http://www.shnenglu.com/wanghaiguang/archive/2014/07/29/207854.html http://www.shnenglu.com/wanghaiguang/comments/207854.html http://www.shnenglu.com/wanghaiguang/archive/2014/07/29/207854.html#Feedback 0 http://www.shnenglu.com/wanghaiguang/comments/commentRss/207854.html http://www.shnenglu.com/wanghaiguang/services/trackbacks/207854.html 闃呰鍏ㄦ枃 ]]> iOS 娣誨姞libxml2.dylb 鍚? 鎵句笉鍒?lt;libxml/tree.h> 澶存枃浠?/title> http://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207651.html鐜嬫搗鍏?/dc:creator>鐜嬫搗鍏?/author>Tue, 15 Jul 2014 05:50:00 GMT http://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207651.html http://www.shnenglu.com/wanghaiguang/comments/207651.html http://www.shnenglu.com/wanghaiguang/archive/2014/07/15/207651.html#Feedback 0 http://www.shnenglu.com/wanghaiguang/comments/commentRss/207651.html http://www.shnenglu.com/wanghaiguang/services/trackbacks/207651.html 鍦?/span>“Header Search Paths” 涓坊鍔?/span>“/usr/include/libxml2″ 鍦?/span>“Other Linker Flags”娣誨姞 “-lxml2″ 榪愯鍚庡嚭鐜伴敊璇壘涓嶅埌 <libxml/tree.h> 瑙e喅鍔炴硶錛?/span>鍦?/span>“Header Search Paths” 涓坊鍔?/span> ${SDKROOT} /usr/include/libxml2 ]]>
久久精品18 |
久久久青草久久久青草 |
久久久久精品国产亚洲AV无码 |
人人狠狠综合88综合久久 |
久久人人爽人人爽人人片av麻烦 |
国产精品一久久香蕉国产线看观看
|
91精品国产高清久久久久久91
|
日韩人妻无码一区二区三区久久99 |
久久人与动人物a级毛片 |
久久久久人妻一区精品色 |
国产亚洲色婷婷久久99精品91 |
久久久久久久久久久久久久
|
久久精品国产亚洲Aⅴ香蕉 |
欧美久久久久久 |
久久噜噜久久久精品66 |
97r久久精品国产99国产精 |
久久青青草原精品国产软件
|
麻豆成人久久精品二区三区免费 |
国产精品狼人久久久久影院 |
久久青青草原精品国产 |
性做久久久久久久久 |
91性高湖久久久久 |
国产亚洲色婷婷久久99精品 |
777午夜精品久久av蜜臀 |
色8激情欧美成人久久综合电 |
99久久伊人精品综合观看 |
久久精品亚洲精品国产色婷 |
久久无码高潮喷水 |
色婷婷久久综合中文久久一本 |
国产99久久久国产精免费 |
久久青青草原综合伊人 |
97久久超碰国产精品2021 |
久久丫精品国产亚洲av不卡 |
A级毛片无码久久精品免费 |
国内精品伊人久久久久777 |
久久综合亚洲鲁鲁五月天 |
香蕉久久久久久狠狠色 |
超级97碰碰碰碰久久久久最新 |
国产精品成人久久久 |
国产精品久久久久免费a∨ |
精品久久久久久中文字幕大豆网 |