j2d.video.producers
Class SocketSinkXmitter

java.lang.Object
  extended by j2d.video.producers.SocketSinkXmitter
All Implemented Interfaces:
ImageListener

public class SocketSinkXmitter
extends java.lang.Object
implements ImageListener

SW410 Midterm. Due in two weeks. Todays' date is: 10/22/08. 1. Finish the SocketSinkXmitter so that it works using the SocketcameraSourceRcvr on your localhost. 2. Try the JPEGCodec or getPngImageBytes for xmitting-rcving images 3. Use the Unicast socket system for xmitting the images an instances of objects 4. Use the ObjectInputStream and ObjectOutputStream to xmit the images. 5. Expand on the above so that it works with Multicast transmissions. Hint: You may like to view the multicast example in: net.multicast.multiMedia.BroadcastMainXmt Hint#2: see ImageUtils.main and the getPngImageBytes Hint#3: See the net.date.SerialClockServer


Constructor Summary
SocketSinkXmitter(java.net.InetAddress ia, int port)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void update(java.awt.Image image)
          Used send the image to the listening application.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketSinkXmitter

public SocketSinkXmitter(java.net.InetAddress ia,
                         int port)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

update

public void update(java.awt.Image image)
Description copied from interface: ImageListener
Used send the image to the listening application.

Specified by:
update in interface ImageListener

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException