[2301] in java-interest

home help back first fref pref prev next nref lref last post

Re: Socket Communication

daemon@ATHENA.MIT.EDU (Mentor)
Thu Sep 28 13:52:32 1995

Date: Thu, 28 Sep 1995 10:56:14 -0400 (EDT)
From: Mentor <mentor@io.org>
To: Joseph Jones <jones@iwn.com>
cc: java-interest@java.sun.com
In-Reply-To: <01BA8D01.0BE8CD80@jlinux.iwn.com>

On Wed, 27 Sep 1995, Joseph Jones wrote:

> The API for the sockets shows all communications using byte arrays. I need
> tp transmit and receive strings. Is there a way to convert a string object
> to a byte array??
> 
> joe

As for transmitting and receiving strings, just create a TextInputStream or a
PrintStream from what the socket gives you, and you're all set for whichever
direction you wanted to go in.

Cheers,
  David Forster
  Mentor Software Solutions
  <a href="http://www.io.org/~mentor">Mentor Software Solutions</a>

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post