• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2ME Socket Server-Client

 
John Gluestorm
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Scott Roberts
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic