Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

OutputStream.writeUTF( String s )  RSS feed

 
Mauricio Bonetti
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to implement a serverSocket wich sends a message to a client, just for testing this method ( writeUTF() ). I'm having no results, i've already read the specification but it seems to be so simple in the text, but when I implement it, i just got out of action.

As follows, for server:



In the client's machine:





Thanks in advance.
 
Mike Simmons
Ranch Hand
Posts: 3090
14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest replacing e.fillInStackTrace() with e.printStackTrace(). The former is unnecessary, and does not do anything to show you the stack trace.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!