net.sf.fmj.media.rtp
Class SocketOutputStream

java.lang.Object
  extended by net.sf.fmj.media.rtp.SocketOutputStream
All Implemented Interfaces:
OutputDataStream

public class SocketOutputStream
extends java.lang.Object
implements OutputDataStream

An output Datagram Socket for JMF

Version:
1-1-alpha3
Author:
Andrew G D Rowley

Constructor Summary
SocketOutputStream(java.net.DatagramSocket socket, java.net.InetAddress sendAddress, int sendPort)
          Creates a new SocketOutputStream
 
Method Summary
 int write(byte[] buffer, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketOutputStream

public SocketOutputStream(java.net.DatagramSocket socket,
                          java.net.InetAddress sendAddress,
                          int sendPort)
Creates a new SocketOutputStream

Parameters:
socket - The datagram socket to adapt
sendAddress - The address to send packets to
sendPort - The port to send packets to
Method Detail

write

public int write(byte[] buffer,
                 int offset,
                 int length)
Specified by:
write in interface OutputDataStream