org.mobicents.media.server.testsuite.general.rtp
Interface RtpSocket

All Known Implementing Classes:
RtpSocketImpl

public interface RtpSocket

Start time:09:28:08 2009-08-03
Project: mobicents-media-server-test-suite

Author:
Bartosz Baranowski

Method Summary
 void addListener(RtpSocketListener listener)
           
 void close()
           
 java.nio.channels.DatagramChannel getChannel()
           
 java.lang.String getLocalAddress()
          Gets address to which this socked is bound.
 int getLocalPort()
          Returns port number to which this socked is bound.
 java.nio.channels.SelectionKey getSelectionKey()
           
 int init(java.net.InetAddress bindAddress, int lowPOrt, int highPort)
           
 boolean isChannelOpen()
           
 void notify(java.lang.Exception e)
           
 void receive(RtpPacket rtpPacket)
           
 void release()
           
 void removeListener(RtpSocketListener listener)
           
 void setPeer(java.net.InetAddress address, int port)
           
 

Method Detail

close

void close()

getSelectionKey

java.nio.channels.SelectionKey getSelectionKey()

setPeer

void setPeer(java.net.InetAddress address,
             int port)
             throws java.io.IOException
Throws:
java.io.IOException

addListener

void addListener(RtpSocketListener listener)

removeListener

void removeListener(RtpSocketListener listener)

getLocalAddress

java.lang.String getLocalAddress()
Gets address to which this socked is bound.

Returns:
either local address to which this socket is bound

getLocalPort

int getLocalPort()
Returns port number to which this socked is bound.

Returns:
port number or -1 if socket not bound.

notify

void notify(java.lang.Exception e)

receive

void receive(RtpPacket rtpPacket)
Parameters:
rtpPacket -

getChannel

java.nio.channels.DatagramChannel getChannel()
Returns:

isChannelOpen

boolean isChannelOpen()

release

void release()

init

int init(java.net.InetAddress bindAddress,
         int lowPOrt,
         int highPort)
         throws java.net.SocketException,
                java.io.IOException
Parameters:
bindAddress -
i -
j -
Throws:
java.net.SocketException
java.io.IOException


Copyright © 2009. All Rights Reserved.