锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产精品亚洲а∨无码播放不卡,亚洲国产第一站精品蜜芽,亚洲AV无码一区二区乱子伦http://www.tkk7.com/algz/category/45315.html鎴戠殑QQ緹?7101519 涓撴敞浜庡墠绔璁?鍋忛噸浜庣▼搴?鐨勫紑鍙?/description>zh-cnTue, 15 Jun 2010 15:22:05 GMTTue, 15 Jun 2010 15:22:05 GMT60WAP PUSH (WAP SI :WAP 涓氬姟鎻愮ず)http://www.tkk7.com/algz/articles/323422.html绱澏鈭忛鎻氣啑绱澏鈭忛鎻氣啑Sat, 12 Jun 2010 06:10:00 GMThttp://www.tkk7.com/algz/articles/323422.htmlhttp://www.tkk7.com/algz/comments/323422.htmlhttp://www.tkk7.com/algz/articles/323422.html#Feedback0http://www.tkk7.com/algz/comments/commentRss/323422.htmlhttp://www.tkk7.com/algz/services/trackbacks/323422.htmlWAP PUSH鍙堝彨鍋氭湇鍔′俊鎭垨鎺ㄥ叆淇℃伅錛屾槸涓縐嶇壒孌婃牸寮忕殑鐭俊銆?br />      wap push 鐨勬剰鎬濇槸甯﹁繛鎺ョ殑鐭俊錛屽畠鍙互寮曞浣犺繘鍏?span style="color: #339966">wap鐨勭綉绔?/span>銆傚畠鏄氳繃sp鐨勭綉鍏沖彂鍑烘潵鐨勶紝鐢ㄨ蔣浠跺拰縐誨姩鐨勬帴鍙c?/p>

WAP PUSH鐨勭壒鐐逛紭鍔?br />     鐪佸幓鐢ㄦ埛鍦ㄦ墜鏈轟笂杈撳叆緗戝潃鐨勪笉鏂逛究銆傚鏈変簺緗戝潃瀛楁暟澶氾紝杈撳叆寰堥夯鐑︺?br />     閫傚悎鐢ㄦ潵鍋氶拡瀵規х殑淇冮攢銆佸箍鍛婂浼犮傚鎮ㄥ彲浠ョ洿鎺ヨ鏌愪釜媧誨姩淇℃伅鐨勯〉闈㈠湴鍧銆佹煇涓紭鎯犲埜鐨勯〉闈㈠湴鍧銆佹煇涓駭鍝佺殑欏甸潰鍦板潃鐩存帴鎺ㄩ佸埌鐢ㄦ埛鎵嬫満銆?br />     鐢ㄦ埛寮哄埗鎬ф帴鍙楋紝鍒拌揪鐜囪揪鍒?00錛?



]]>
JAVA 涓茶璁懼(鐭俊鐚?SMS鐭俊鍙戦?/title><link>http://www.tkk7.com/algz/articles/323309.html</link><dc:creator>绱澏鈭忛鎻氣啑</dc:creator><author>绱澏鈭忛鎻氣啑</author><pubDate>Fri, 11 Jun 2010 01:26:00 GMT</pubDate><guid>http://www.tkk7.com/algz/articles/323309.html</guid><wfw:comment>http://www.tkk7.com/algz/comments/323309.html</wfw:comment><comments>http://www.tkk7.com/algz/articles/323309.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/algz/comments/commentRss/323309.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/algz/services/trackbacks/323309.html</trackback:ping><description><![CDATA[<p>鍓嶈█錛?br /> JAVA鍙戦丼MS鐭俊鏈変袱縐嶆柟娉曪細涓鏄氳繃榪愯惀鍟嗙殑緗戝叧錛涗簩鏄氳繃鐭俊鐚紝涓嶆槸寰堝鏉傦紙鏈枃涓昏浠嬬粛錛夈?/p> <p>涓銆丼MS鐭俊鍙戦佹柟寮忥紙2縐嶏級<br /> 1銆佸湪Java緙栫▼涓彲浠ラ氳繃Java Comm綾昏繘琛屾墜鏈轟笌鐢佃剳鐨勪覆鍙i氳錛屽茍閫氳繃AT鎸囦護鎺у埗鎵嬫満鎿嶄綔銆傦紙鏈搴曞眰鏂瑰紡錛?br /> 2銆丼MSLib欏圭洰錛屽皝瑁呬簡搴曞眰AT鎸囦護闆嗭紝涓嶉渶鑷繁鍦ㄥ幓鍐欏簳灞傜殑 AT鎸囦護涓庢墜鏈鴻繘琛岄氳銆傦紙闇瑕丼MSLib寮鍙戝寘錛屾病鏈夊畬鏁寸殑API鏂囨。錛屽彧鑳介氳繃鏍蜂緥鏌ョ湅錛屽叾榪愯鏃墮渶瑕乻lf4j錛堢被浼糽og4j)鍜孞ava comm鐨勬敮鎸侊級 </p> <p>浜屻佹墍闇鐨凧ava comm 鏂囦歡鍙婇厤緗柟娉曪細<br /> 錛?錛変笅杞芥枃浠訛細javacomm20-win32.zip<br /> JAVA_HOME%鏄痡dk鐨勮礬寰勶紝鑰岄潪jre銆係MSlib 鍙敮鎸丣DK1.6鍙婁互涓?<br /> 1.comm.jar鎻愪緵浜嗛氳鐢ㄧ殑java API銆傛嫹璐濆埌%JAVA_HOME%\jre\lib\ext鐩綍銆?br /> 2.win32com.dll鎻愪緵浜嗕緵comm.jar璋冪敤鐨勬湰鍦伴┍鍔ㄦ帴鍙c傛嫹璐濆埌%JAVA_HOME%\bin<br /> 3.javax.comm.properties鏄繖涓┍鍔ㄧ殑綾婚厤緗枃浠躲傚鍒跺埌%JAVA_HOME%\jre\lib鐩綍銆?<br /> 錛?錛変笅杞絊MSLib</p> <p>涓夈佸紑鍙戞楠わ細<br /> 錛?錛夊垱寤哄茍閰嶇疆鐩稿叧瀵硅薄騫跺惎鍔ㄦ湇鍔?/p> <p>  // 鍒涘緩鏈嶅姟瀵硅薄銆傦紙浠呬笖鍙湁涓涓湇鍔″璞★紝浣嗗彲浠ユ湁澶氫釜緗戝叧錛?br />    this.srv = new Service();</p> <p>   // 鍒涘緩涓涓狦SM modem 綾誨瀷浠f浛緗戝叧錛堜篃鍙互鍒涘緩鍒殑綾誨瀷錛夈?br />    SerialModemGateway gateway = new SerialModemGateway("modem.com1", "COM1", 57600, "Nokia", "");<br />    gateway.setProtocol(Protocols.PDU);// 璁劇疆PDU鍗忚(PDU鏄粯璁ょ殑錛屼篃鍙互璁劇疆涓篢EXT綆鍗曟枃鏈崗璁級.<br />    gateway.setInbound(true);//璁劇疆緗戝叧鑳藉惁鎺ユ敹娑堟伅(鍏ョ珯)<br />    gateway.setOutbound(true);//璁劇疆緗戝叧鑳藉惁鍙戦佹秷鎭?鍑虹珯)<br />    gateway.setSimPin("0000");// Let SMSLib know which is the SIM PIN.</p> <p>   //瀵逛簬寮傛澶勭悊鐭俊鏃訛紝鎵嶉噰鐢ㄤ簨浠墮┍鍔ㄦ満鍒訛紝濡備笅錛?br />    //璁劇疆浜嬩歡鐨勫洖璋冪被(浠ヤ笅浠呭寘鎷竴閮ㄥ垎.姣忎釜浜嬩歡閮芥槸涓涓疄鐜板搴旀帴鍙g殑綾誨茍瀹炵幇鍏秔rocess鏂規硶).<br />    this.srv.setInboundMessageNotification(inboundNotification);//鏀跺埌鐭俊浜嬩歡鍑芥暟<br />    this.srv.setCallNotification(callNotification);//鎺ュ埌鐢佃瘽浜嬩歡鍑芥暟<br />    this.srv.setGatewayStatusNotification(statusNotification);//緗戝叧鐘舵佸彉鍖栦簨浠跺嚱鏁?br />    this.srv.setOrphanedMessageNotification(orphanedMessageNotification);</p> <p><br />    this.srv.addGateway(gateway);// 娣誨姞緗戝叧鍒版湇鍔″璞′腑.<br />    this.srv.startService();// 鍚姩鏈嶅姟瀵硅薄.</p> <p>錛?錛夎鍙栫煭淇?br /> 鍚屾璇誨彇紺轟緥:<br />    msgList = new ArrayList<InboundMessage>();<br />    //璇誨彇淇℃伅(涓昏鏂規硶)--涓や釜鍙傛暟鎸囧畾瑕佷繚瀛樼殑浣嶇疆鍜岃璇誨彇鐨勭煭淇$殑綾誨瀷錛屽宸茶錛屾湭璇伙紝淇℃伅鎶ュ憡絳夈?br />    this.srv.readMessages(msgList, MessageClasses.ALL);<br />    for (InboundMessage msg : msgList)<br />     System.out.println(msg);</p> <p><br /> There are two ways to read messages:</p> <p>The synchronous way: just call the readMessages() method of the Service class. SMSLib will iterate all defined gateways, collect messages from all and return them in a collection. Note that you will be blocked until SMSLib returns. There are many forms of the readMessages() call - choose the one according to your needs. <br /> The asynchronous way: you can implement some callback methods in your code (listeners) and pass them to the Service. SMSLib will then automatically call you upon message reception. For more information, see Callback methods. </p> <p>鍚屾璇誨彇錛歵his.srv.readMessages(msgList, MessageClasses.ALL);<br /> 寮傛璇誨彇錛氬湪浜嬩歡澶勭悊鍑芥暟涓鍙?</p> <p>錛?錛夊彂閫佺煭淇?/p> <p>There are two ways to send a message:</p> <p>The synchronous way: create a message object and call the sendMessage() method of the Service class. Note that you will be blocked until SMSLib returns. Upon return, you can examine the message object to see the fate of your message. <br /> The asynchronous way: use the queueMessage() family of methods to queue your message. Queueing a message returns control immediately to you. SMSLib keeps this message in internal queues and send its in the background. To learn about the fate of your message, you should setup a IOutboundMessageNotification callback method (see Callback methods). <br /> <br /> 鍚屾鍙戦侊細sendMessage()<br /> 寮傛鍙戦侊細queueMessage()</p> <p><br /> 鍚嶈瘝瑙i噴: <br /> gateway鐨勬蹇電殑瑙i噴浠嬬粛錛?/p> <p>       gateway鏄敤鏉ユ敹鍙憇ms鐭俊鐨勪竴涓澶囨垨鑰呬竴涓湇鍔$殑鎺ュ彛錛屼竴涓綉鍏沖彲浠ユ槸涓涓猤sm modem 涔熷彲浠ユ槸涓涓湇鍔℃彁渚涘晢錛宻mslib 鍙互鍚屾椂澶勭悊澶氫釜gateway</p> <p> </p> <p>鍙戦佷紭鍏堢駭錛?/p> <p>Smslib 鍙戦佺煭淇″彲浠ユ彁渚涗竴涓棤闄愬埗鐨勪紭鍏堢駭錛岋紙灝辨槸鍙戦佸鏉$煭淇℃椂鐨勪竴涓瓥鐣ワ紝鍝釜鍏堝彂錛屽摢涓悗鍙戯級,smslib 浼樺厛綰х瓥鐣ユ槸璺熶綘鐨刧ateway錛坓sm modem 鎴栬呮槸鐭俊鎻愪緵鍟嗭級瀵瑰簲鐨勶紝闄ら潪浠栦滑鏄吉鐓х殑銆?/p> <p> </p> <p>寮傛銆佸悓姝ユ帴鏀?/p> <p>Smslib 鏈変袱涓柟寮忔帴鏀剁煭淇?/p> <p>1.       鍚屾鎺ユ敹錛氫綘鍙互闅忔椂鐨勮皟鐢╮ead()鏂規硶鏉ユ帴鏀剁煭淇°?/p> <p>2.       寮傛鎺ユ敹錛氱瓑寰卻mslib 鑷姩鎺ユ敹鐭俊錛屽綋鐭俊鍒版潵鏃躲?/p> <p> </p> <p>寮傛銆佸悓姝ュ彂閫?/p> <p>Smslib 鍚屾牱鏈変袱縐嶆柟寮忓幓鍙戦佺煭淇?/p> <p>1.       鍚屾鍙戦侊細褰撲綘鐨刟pp浣跨敤smslib 鍙戦佷竴鏉$煭淇℃椂錛宎pp綰跨▼灝嗕細閿佸畾錛岀洿鍒扮煭淇″彂閫佸畬姣曪紝鎴栨槸鍙戦佸け璐ャ?/p> <p>2.       寮傛鍙戦侊細褰撲綘浣跨敤榪欑鏂瑰紡鍙戦佷竴鏉$煭淇℃椂錛宎pp 綰跨▼涓嶄細閿佸畾錛宻msliib 浼氶┈涓婅繑鍥烇紝smslib 浼氬皢浣犵殑鐭俊錛坰錛夊湪鍚庡彴鍙戦併備綘鍙互閫夋嫨鏄惁鎻愰啋鍙戝嚭鐭俊鐨勭姸鎬併?/p> <p> </p> <p>鍥炶皟鍑芥暟 </p> <p>褰撴湁鏂頒簨浠跺彂鐢熸椂錛堟敹鍒版柊鐭俊錛屾垨鑰呮槸涓鏉$煭淇″彂閫佹垚鍔熸垨鑰呮槸澶辮觸錛夛紝smslib 鍙互瀹氫箟鍥炶皟鏂規硶錛堜簨浠墮┍鍔級</p> <p>Inbound voice calls錛氬綋鏈変竴鐢佃瘽鎵撹繘鏃訛紝浣犲彲浠ヨ緗槸鍚︽彁閱掍綘錛岃娉ㄦ剰榪欎釜鍛煎彨灝嗕細鑷姩鐨勬棤鏉′歡鐨勮嚜鍔ㄦ寕鏂?/p> <p>Inbound messages:姣忓綋鏈夋柊鐨勭煭淇℃潵鍒版椂錛宻mlib 鍙互璁劇疆璋冪敤浣犵殑鎸囧畾鐨勬柟娉?/p> <p>Outbound messages:褰撲綘浣跨敤寮傛鍙戦佷俊鎭椂錛屼綘鍙互璋冪敤浣犳寚瀹氱殑鏂規硶鏉ュ緱鍒板凡緇忓彂閫佺殑鐭俊鐨勭姸鎬佷俊鎭瓑銆?/p> <p>Gateway status changes錛歴mslib 鍙互鎻愰啋浣犳瘡嬈ateway 鏀瑰彉鐘舵佺殑鎯呭喌 </p> <p>Queue sending operation錛歴mslib 鍙互闅忔椂闅忓埢鐨勫噯澶囧彂閫佷竴鏉$煭淇★紝鍙互闅忔椂闅忓湴鐨勫彇鍒板綋鍓嶇煭淇$殑鍙戦佺姸鎬併?/p> <p><br />  </p> <img src ="http://www.tkk7.com/algz/aggbug/323309.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/algz/" target="_blank">绱澏鈭忛鎻氣啑</a> 2010-06-11 09:26 <a href="http://www.tkk7.com/algz/articles/323309.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://wxyz2.com" target="_blank">图图资源网亚洲综合网站</a>| <a href="http://k8h9.com" target="_blank">亚洲精品乱码久久久久66</a>| <a href="http://5r7b.com" target="_blank">亚洲国产区男人本色在线观看</a>| <a href="http://taobaohuopin.com" target="_blank">a毛片在线看片免费</a>| <a href="http://zhnetbar.com" target="_blank">亚洲人成人网站色www</a>| <a href="http://www91pao.com" target="_blank">两性色午夜免费视频</a>| <a href="http://ncmyw.com" target="_blank">国产亚洲av片在线观看16女人</a>| <a href="http://33uub.com" target="_blank">国内永久免费crm系统z在线 </a>| <a href="http://xxnxgay.com" target="_blank">亚洲高清无在码在线电影不卡</a>| <a href="http://szyxfhm.com" target="_blank">好紧我太爽了视频免费国产</a>| <a href="http://zuche001.com" target="_blank">亚洲av无码乱码国产精品fc2</a>| <a href="http://clever-ad.com" target="_blank">日韩电影免费观看</a>| <a href="http://6ork.com" target="_blank">亚洲乱码卡三乱码新区</a>| <a href="http://dou18.com" target="_blank">妞干网手机免费视频</a>| <a href="http://56v6.com" target="_blank">日韩国产欧美亚洲v片 </a>| <a href="http://gachi1151.com" target="_blank">大地资源在线资源免费观看</a>| <a href="http://carsmp.com" target="_blank">亚洲国产香蕉碰碰人人</a>| <a href="http://ghdc5.com" target="_blank">av无码久久久久不卡免费网站</a>| <a href="http://yeshenghuowang.com" target="_blank">亚洲欧洲精品在线</a>| <a href="http://youtobey.com" target="_blank">最近2019中文字幕mv免费看</a>| <a href="http://cct68.com" target="_blank">美女免费视频一区二区</a>| <a href="http://yuezhaoming.com" target="_blank">亚洲中文无韩国r级电影</a>| <a href="http://ljdst.com" target="_blank">四虎影视在线影院在线观看免费视频 </a>| <a href="http://douhuowang.com" target="_blank">亚洲精品乱码久久久久66</a>| <a href="http://shcxsoft.com" target="_blank">99在线观看视频免费</a>| <a href="http://deyingwh.com" target="_blank">tom影院亚洲国产一区二区</a>| <a href="http://ebuy668.com" target="_blank">精品免费国产一区二区</a>| <a href="http://nit8.com" target="_blank">国产免费久久精品丫丫</a>| <a href="http://shadaiym.com" target="_blank">久久亚洲私人国产精品vA</a>| <a href="http://22222xxx.com" target="_blank">欧美a级成人网站免费</a>| <a href="http://www6661126.com" target="_blank">极品色天使在线婷婷天堂亚洲</a>| <a href="http://blcvs.com" target="_blank">一本久久a久久精品亚洲</a>| <a href="http://445645.com" target="_blank">91制片厂制作传媒免费版樱花</a>| <a href="http://www-171234.com" target="_blank">午夜在线a亚洲v天堂网2019</a>| <a href="http://8884493.com" target="_blank">成人亚洲网站www在线观看</a>| <a href="http://caoliushequ9.com" target="_blank">国内精品久久久久影院免费 </a>| <a href="http://k8h9.com" target="_blank">你懂的免费在线观看网站</a>| <a href="http://gzmcmy.com" target="_blank">亚洲三级在线观看</a>| <a href="http://9196528.com" target="_blank">亚洲午夜无码久久久久</a>| <a href="http://234an.com" target="_blank">毛片免费在线观看网站</a>| <a href="http://www-188588.com" target="_blank">a毛片成人免费全部播放</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>