Re: final project

Henry Y Wong (henryw@mit.edu)
Wed, 19 Nov 1997 17:23:22 EST

Here's a note if you are creating your own Wire class:

You need to create the ObjectOutputStream before you create the
ObjectInputStream. This is because when you try to create an
ObjectInputStream Java will first check if there is a corresponding
ObjectOutputStream at the other end and will wait until one is created
until it creates the ObjectInputStream. Thus, if you try to create both
ObjectInputStreams first, both copies of Java will sit there and
wait for the other application to create an ObjectInputStream. Thus,
nothing will ever happen.

Hope this helps.

Henry