SocketChannel, broken pipe exception - Cupcake only

by moju27 » Fri, 23 Apr 2010 11:23:34 GMT


Sponsored Links
 Hello :)

I'm currently writing an application to communicate with my server app
which is on a PC on the LAN. I'm using a SocketChannel and it causes
an IO exception (broken pipe). The weird and really problematic part
is that this exception only occurs on Cupcake !!!

To give more details, the exception happens when I'm writing on the
socket channel. The socket channel says that it's connected / bound,
everything seems to be correct. Plus I see my client on the server
side.
By the way, I use a non blocking socket.

So, I would be very happy if anyone had a clue regarding this ... I
couldn't find any help anywhere else.

Thanks,

Morgane

--



Other Threads

1. Available data from an InputStream from URLConnection?


I have an AsyncTask retrieving content from a website. A few of them in parallel, actually. I've noticed that when I run on a device, rather than the emulator, I will sometimes get a null Bitmap back when I do: URLConnection conn = url.openConnection(); Bitmap image = BitmapFactory.decodeStream(conn.getInputStream()); I tried creating an InputStream locally from the connection, too, with no effect. I suspect the issue is just that sufficient data is not yet available on the URLConnection to satisfy BitmapFactory.decodeStream(). Other than adding a sleep (Thread.sleep), does anyone know of a way to ensure that enough data is available, or otherwise tell BitmapFactory that it should be more patient rather than returning a null Bitmap? Thanks... - Chris --

2. Yuk intip masa depan....:-)

Pertama gak nih. Nice info om. Ramal cewe2 aah...

send from big Hero, my Android phone




Nah, buat yg iseng, atau mau ngisi acara waktu kumpul2, coba sedikit jadi
dukun...:-)

Baca garis tangan, kenali sifat, umur, jodoh dll hahahaha...

Enjoy, ada di market, palm reading

Salam,

Lucky Sebastian

-- 
"Indonesian Android Community [id-android]"

3. Sending/Receiving Lists anroid - webserver

4. Lazy Loading of images in the list view

5. regarding using handler function

6. HELP! Get contact's thumbnail picture!

7. OOT: Pake themes apa di Andro teman2?