A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Sockets and Internet Protocols
Joined: Jun 27, 2008
Jul 18, 2008 16:07:00
I am writing on a socket.
If the bytes in buffer and less than the bufferSize is additional overhead incurred?
dataOutputStream.write(buffer, 0, bufferSize);
Joined: Aug 10, 2005
Jul 18, 2008 20:32:00
Could you reenter your question? It doesn't make sense as worded.
write will output buffersize bytes in buffer starting at the first (0) byte.
buffersize must be <= the buffer length
I agree. Here's the link:
Can non-blocking IO be this simple?
image file upload problem
How to record an FM audio in android?
Opening a File with the appropriate program with highlighted text
How do you link 8k with 12264 ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015