Phone Scoop

printed August 1, 2015
See this page online at:
http://www.phonescoop.com/forums/forum.php?fm=m&ff=10&fh=1167552

Home  ›  Forums  ›

Java

all discussions

Socket connection in CLDC

amity

May 17, 2007, 4:08 AM
Hello,

I have write a sample program to read
the content of a URL via SocketConnection. I got success to make a socket connection with server. which I had conform to seem in n/w monitor which i enabled previously.

But the problem is that nothing should be send by server.I check the available data in InputStream , which I got from connection is zero.

I write my code below:



package connection;

import display.Show;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import javax.microedition.io.Connector;
import javax.microedition.io.HttpConnection;
import javax.microedition.io.SocketConnection;
import midlet.GC...
(continues)
...

You must log in to reply.

Please log in to report a message to the moderator.


all discussions

Subscribe to Phone Scoop News with RSS Follow @phonescoop on Twitter Phone Scoop on Facebook Subscribe to Phone Scoop on YouTube Follow on Instagram

 

All content Copyright 2001-2015 Phone Factor, LLC. All Rights Reserved.
Content on this site may not be copied or republished without formal permission.
2