Class RTPPort

    • Constructor Detail

      • RTPPort

        public RTPPort​(String inIpAddress,
                       int inPort,
                       String outIpAddress,
                       int outPort,
                       boolean isMulticast)
        Constructor
        Parameters:
        inIpAddress - in ip address
        inPort - in port
        outIpAddress - out ip address
        outPort - out port
        isMulticast - true if multicast
    • Method Detail

      • getTrack

        public com.wowza.wms.rtp.model.RTPTrack getTrack()
        Get RTP track
        Returns:
        RTP track
      • setTrack

        public void setTrack​(com.wowza.wms.rtp.model.RTPTrack track)
        Set RTP track
        Parameters:
        track - RTP track
      • getUDPTransport

        public IUDPTransport getUDPTransport()
        Get the UDP transport
        Returns:
        UDP transport
      • getInIpAddress

        public String getInIpAddress()
        Get in IP address
        Returns:
        in IP address
      • getOutIpAddress

        public String getOutIpAddress()
        Get out IP address
        Returns:
        out IP address
      • getInPort

        public int getInPort()
        Get in port
        Returns:
        in port
      • getOutPort

        public int getOutPort()
        Get out port
        Returns:
        out port
      • isConnected

        public boolean isConnected()
      • bind

        public void bind​(int direction)
        Bind to port
        Parameters:
        direction - in or out, see IUDPTransport.DIRECTION_*
      • unbind

        public void unbind()
        Unbind
      • shutdown

        public void shutdown()
        Shutdown port
      • getHandler

        public IRTPMessageHandler getHandler()
        Get the message handler
        Returns:
        message handler
      • setHandler

        public void setHandler​(IRTPMessageHandler handler)
        Set the message handler
        Parameters:
        handler - message handler
      • sendMessage

        public void sendMessage​(byte[] message,
                                int offset,
                                int len)
        Send a message out
        Parameters:
        message - message
        offset - offset
        len - len
      • sendResponse

        public void sendResponse​(byte[] message)
        Send a response
        Parameters:
        message - message
      • sendResponse

        public void sendResponse​(byte[] message,
                                 int offset,
                                 int len)
        Send response
        Parameters:
        message - message
        offset - offset
        len - len
      • sendResponse

        public void sendResponse​(byte[] message,
                                 int offset,
                                 int len,
                                 java.net.SocketAddress destination,
                                 long timecode)
        Send response to destination
        Parameters:
        message - message
        offset - offset
        len - len
        destination - destination address
      • handleMessage

        public void handleMessage​(java.net.SocketAddress socketAddr,
                                  Object message)
        Specified by:
        handleMessage in interface IUDPMessageHandler
      • isInMulticast

        public boolean isInMulticast()
        Is in stream multicast
        Returns:
        true if multicast
      • isOutMulticast

        public boolean isOutMulticast()
        Is out stream multicast
        Returns:
        true if multicast
      • isMulticast

        public boolean isMulticast()
        Is multicast
        Returns:
        true if multicast
      • getTTL

        public int getTTL()
        Get time to live (milliseconds)
        Returns:
        time to live (milliseconds)
      • setTTL

        public void setTTL​(int ttl)
        Set time to live (milliseconds)
        Parameters:
        ttl - time to live (milliseconds)
      • getAddressCount

        public int getAddressCount()
        Get address count
        Returns:
        address count
      • setAddressCount

        public void setAddressCount​(int addressCount)
        Set address count
        Parameters:
        addressCount - address count
      • isBlockUDPOut

        public boolean isBlockUDPOut()
      • setBlockUDPOut

        public void setBlockUDPOut​(boolean blockUDPOut)