org.mobicents.media.server.testsuite.general.rtp
Class Transceiver
java.lang.Object
org.mobicents.media.server.testsuite.general.rtp.Transceiver
- All Implemented Interfaces:
- java.lang.Runnable
public class Transceiver
- extends java.lang.Object
- implements java.lang.Runnable
Start time:14:52:37 2009-08-03
Project: mobicents-media-server-test-suite
This class represent similar usability as Transceiver in mms, however it does only reiceve and math poper socket,
this is due that mms sends data on single port, thus we can not use the same scheme as mms.
- Author:
- Bartosz Baranowski
|
Constructor Summary |
Transceiver(java.util.HashMap<java.nio.channels.SelectionKey,RtpSocket> rtpSockets,
java.nio.channels.Selector readSelector)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transceiver
public Transceiver(java.util.HashMap<java.nio.channels.SelectionKey,RtpSocket> rtpSockets,
java.nio.channels.Selector readSelector)
throws java.net.SocketException,
java.io.IOException
- Throws:
java.net.SocketException
java.io.IOException
addNewChannel
public void addNewChannel(RtpSocketImpl channel)
start
public void start()
stop
public void stop()
send
public void send(byte[] data,
int len,
java.net.SocketAddress remoteAddress)
throws java.io.IOException
- Throws:
java.io.IOException
run
public void run()
- Specified by:
run in interface java.lang.Runnable
Copyright © 2009. All Rights Reserved.