Hi Nipun,
I can't get a working SSL Socket going and I believe there is a bug in
the SDK. Are you able to get SSL socket to work?
On Mar 7, 10:59 am, nipun <[EMAIL PROTECTED]> wrote:
> Thanks Sir.
>
> On Mar 7, 8:35 pm, DanAtAndroid <[EMAIL PROTECTED]> wrote:
>
> > Again, read the documentation. available() doesn't have to return the
> > number of bytes available to be consumed in the stream.
> > You should handle this stream the same way you handle any other
> > stream, by read()'ing it until you can't anymore.
>
> > On Mar 7, 5:30 am, nipun <[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > These are the few lines of my code,
>
> > > SocketFactory socketFac =SSLSocketFactory.getDefault();
> > > Socket connection = socketFac.createSocket("someServerAddress",
> > > someServerPort);
> > > InpuStream in = connection.getInputStream();
>
> > > in another thread i am reading the data on the stream. In that thread
> > > in.available() return 0.
>
> > > Please help me if their is an error in the above code.
>
> > > Thanks and Regards
> > > Nipun
>
> > > On Mar 6, 9:02 pm, DanAtAndroid <[EMAIL PROTECTED]> wrote:
>
> > > > you are using that method incorrectly. Read the documentation.
>
> > > > On Mar 6, 2:46 am, nipun <[EMAIL PROTECTED]> wrote:
>
> > > > > Hello,
>
> > > > > I am facing a problem while creating a SSL socket, the
> > > > > inputstream.available() method always returns 0, but actually there is
> > > > > a data available on the stream.
>
> > > > > Thanks and Regards
> > > > > Nipun
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---