• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

J2ME Socket Server-Client

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, everyone.

Is there any way to make a socket connection application in J2ME that acts as server and as a client at the same time? If so, please show me how.

Thank you all in advance
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you can make TCP/UDP connections as per MIDP2.0 spec.

Have a look at

http://www.java-samples.com/j2me/socket-connection-free-j2me-sample-program.htm
http://www.informit.com/articles/article.aspx?p=131116&seqNum=5

Using the above examples I have tried to make a socket connection, however I haven't had any sucess as yet.
In case you do let me know.

Rdgs,
Harry
reply
    Bookmark Topic Watch Topic
  • New Topic