BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
kamal1981 Offline
Knows Where the Search Button Is
 
Posts: 21
Join Date: Jan 2006
Model: 7290
Carrier: Airtel
Question Connecting to Java Standalone server - 01-18-2006, 09:33 PM

Hi,

I am trying to connect to a Java standalone server for testing purpose. It is basically an echo server. It receives bytes of data and send them back again to the client. I have written a socket client for that in my BlackBerry. The problem here is, I want to bypass the MDS. Is there any other alternative through which i can reach that server from device without going through MDS

Any clue will be helpful. Thanks in advance.

--
Kamal
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
Rambler Offline
Talking BlackBerry Encyclopedia
 
Rambler's Avatar
 
Posts: 214
Join Date: Apr 2005
Model: 7750
Carrier: AT&T
Default 01-18-2006, 09:37 PM

StreamConnection sc = (StreamConnection) Connector.open("socket://<host>:<port>;deviceside=true");

See the api documentation for javax.microedition.io.Connector for more information.
   
  (#3 (permalink)) Old
kamal1981 Offline
Knows Where the Search Button Is
 
Posts: 21
Join Date: Jan 2006
Model: 7290
Carrier: Airtel
Default 01-18-2006, 11:35 PM

Thank you very much Rambler. It was really a great help.
   
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.