| Reply | « Previous Thread | Next Thread » |
|
Hi all,
I am trying to send some bytes of data from one handset A to another handset B over TCP via a J2ME application. Basically, it's peer to peer in nature. Can someone advice how I can do this in J2ME? Thanks very much. Regards. |
| capricious28 |
| View Public Profile |
| Find all posts by capricious28 |
|
Hi capricious28,
I advise you to take a look at the SIP API for JME (JSR-180). Forum Nokia has good documentation and example for SIP and P2P is a good use case for SIP. Here are some links: MIDP: SIP API Developer's Guide http://www.forum.nokia.com/info/sw.n..._0_en.pdf.html MIDP: SIP API Example http://www.forum.nokia.com/info/sw.n..._0_en.zip.html Hope it helps! BR, Juarez Junior |
|
Just to add what Juarez said:: Me already had some some discussion regarding some introduction docs to SIP. Please note that several links have been provided by different users, if interested you could navigate through different pages in this thread.
http://agathonisi.erlm.siemens.de:80...art=0&tstart=0 Regards Gopal |
|
Hi balagopalks and juarezjunior,
Thanks for your replies respectively. However, I was thinking, can this task of transferring bytes peer to peer be accomplished using SocketConnection and ServerSocketConnection? If yes, is there any way of getting the IP address of the handset? Thanks again. |
| capricious28 |
| View Public Profile |
| Find all posts by capricious28 |
|
Hi capricious28,
"is there any way of getting the IP address of the handset" AFAIK, if you manage to get one device's address, you'd need to publish it externally to allow another device to get it. Note that IP addresses in mobile networks are dynamic (DHCP) and they will change. I consider SIP as the best solution, no doubt. BR, Juarez Jr |
|
Hi Juarez Jr,
Okay let's say I am using SIP, am I right to pass the bytes of data via a SIP MESSAGE to the other party? Is there a limit to how many bytes a SIP MESSAGE can carry? Because I may attempt to pass huge number of bytes of data. Quite new in this area, appreciate any help! Thanks! Quote:
|
| capricious28 |
| View Public Profile |
| Find all posts by capricious28 |
|
Hi capricious28,
AFAIK there's no such restriction. Read below: "SIP works in concert with other protocols and is only involved in the signaling portion of a communication session, acting as a carrier for the SDP. The SDP describes the session name and purpose, time(s) the session is active, the media comprising the session, information to receive the media (addresses, ports, formats etc.). In typical use, SIP "sessions" are simply packet streams of the Real-time Transport Protocol (RTP), which funtions as the carrier for the actual voice or video content itself." I am not a specialist regarding this SIP API (JSR-180), I've just worked with some examples related to it as well as the SIP Servlet API (JSR-116), though. I am looking forward to an opportunity of implementing some solution using them :) BR, Juarez Jr |
|
Thanks, Juarez Jr.
I am in the process of working on SIP now. Thanks for your help :) |
| capricious28 |
| View Public Profile |
| Find all posts by capricious28 |
|
Hi capricious28,
You're very welcome! Glad it helped :) BR, Juarez Junior |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Connection way in j2me. | lukaszpl | Mobile Java General | 0 | 2005-07-21 11:05 |
| Mobile which supports Datagram Connection in J2ME | hbfornies | Mobile Java Networking & Messaging & Security | 7 | 2003-09-08 16:25 |
| Add username and password to an HTTP connection with J2ME | daldaver | Mobile Java Networking & Messaging & Security | 1 | 2003-08-23 06:23 |
| GPRS Mobile Termination (MMS) and peer to peer connection | lajmve | General Discussion | 1 | 2003-05-22 18:34 |
| close a wap connection in j2me | hadam | Mobile Java General | 0 | 2002-08-29 07:38 |