dear all,
has anyone tried to implement the client server example that was given in the previous
thread?? i keep getting uncaught out of memory exceptions.
basically if i implement the code as it is i get the exception, so i changed the client code from:
int n = din.readInt();
while(n-- > 0){
text.append(din.readUTF() );
text.append( '\n' );
to this:
int n = 10
while(n-- > 0){
text.append(din.readUTF() );
text.append( '\n' );
now it processes the request, but the screen is blank (ie showing no response). however, if you remove the UTF encoding and just read(), the response comes up, albeit just a bunch of numbers. im a bit bamboozled, if anyone can help that would be great!!
dave