⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 JAVA一个有关通信方面的实例
💻
字号:
Example sending and receiving of mms0.-download the followingjwap-1.1.jar (included in jwap-1.1.tar.gz or jwap-1.1.zip)mobileUtil.jar-fire up your gprs connection in the background (but before doing so you might want to disable any existing network configurations). I believe jWap would be using the default route.In Windows, this should just be a breeze and as easy as starting a dial up connection. consult yourservice provider's documentation as well as any manual that comes with your modem.In Linux or in any other Un*x platforms don't forget to configure your dns (you might not need itif you use purely numerical ip addresses such as http://10.102.61.238:8002/).you might want to read on http://kotinetti.suomi.net/mcfrisk/linux_gprs.htmlmake sure that the gprs works, try loading google with your web browser. try to ping the IP addressof the wap gateway too that you will be connecting to.-include the two jars into your class path and make sure that everything compiles1. sendingconfigure MMSSender. change wapIPAddress and mmsc to the settings of your provider. change the phone numbers and everything you desire in the creation of mms pdu in the main method. for now you can try sending and receiving to the same number. run the application and pray that it works =) if successful, the response would usually have content type application/vnd.wap.mms-message and the application should be able to parse the response. the message_id (see the console output) in a successful response would be the same message_id of the receiving party (in the m-retrieve-conf).if unsuccessful, usually you will get an xml (content type text/vnd.wap.wml). 2. receivingconfigure MMSGetter just like in MMSSender. if you tried sending to yourself in (1), the message id parsed in theresponse (m-send-conf) should be the same as the message id parameter in MMSGetter. if you have received an mms notification (which is usually 2 concatenated text messages),the content location stated in there is usually of the form <mmsc>/<message id>. so again start the application. whether or not you are successful, you would get a pdu response. Check the output.3. end gprs connection if you no longer need it. in Un*x, restore any dns configurations if you changed it.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -