File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes J2ME Network Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "J2ME Network" Watch "J2ME Network" New topic

J2ME Network

Bill Ceglia
Ranch Hand

Joined: Dec 13, 2001
Posts: 30
Does the J2ME engine support Sockets? I have seen conflicting information that says it does and doesn't, I've also seen the same thing for the Datagram as well? I have been able to send data using a StreamConnection and having the protocol set to HTTP but if I set it to Socket and send it, it fails on the recv'n end?
Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 782

No. CLDC 1.0 does not support sockets/datagrams. But obviously the vendor can add OEM class libs to support it - but this will not be portable.
I've read that the next generation J2ME will consider adding sockets etc..


I agree. Here's the link:
subject: J2ME Network
It's not a secret anymore!