Class Ping

java.lang.Object
org.red5.server.net.rtmp.event.BaseEvent
org.red5.server.net.rtmp.event.Ping
All Implemented Interfaces:
Externalizable, Serializable, IEvent, IRTMPEvent, Constants
Direct Known Subclasses:
SetBuffer, SWFResponse

public class Ping extends BaseEvent
Ping event, actually combination of different events. This is also known as a user control message.
Author:
mondain
See Also:
  • Field Details Link icon

    • STREAM_BEGIN Link icon

      public static final short STREAM_BEGIN
      Stream begin / clear event
      See Also:
    • STREAM_PLAYBUFFER_CLEAR Link icon

      public static final short STREAM_PLAYBUFFER_CLEAR
      Stream EOF, playback of requested stream is completed.
      See Also:
    • STREAM_DRY Link icon

      public static final short STREAM_DRY
      Stream is empty
      See Also:
    • CLIENT_BUFFER Link icon

      public static final short CLIENT_BUFFER
      Client buffer. Sent by client to indicate its buffer time in milliseconds.
      See Also:
    • RECORDED_STREAM Link icon

      public static final short RECORDED_STREAM
      Recorded stream. Sent by server to indicate a recorded stream.
      See Also:
    • UNKNOWN_5 Link icon

      public static final short UNKNOWN_5
      One more unknown event
      See Also:
    • PING_CLIENT Link icon

      public static final short PING_CLIENT
      Client ping event. Sent by server to test if client is reachable.
      See Also:
    • PONG_SERVER Link icon

      public static final short PONG_SERVER
      Server response event. A clients ping response.
      See Also:
    • UNKNOWN_8 Link icon

      public static final short UNKNOWN_8
      One more unknown event
      See Also:
    • PING_SWF_VERIFY Link icon

      public static final short PING_SWF_VERIFY
      SWF verification ping 0x001a
      See Also:
    • PONG_SWF_VERIFY Link icon

      public static final short PONG_SWF_VERIFY
      SWF verification pong 0x001b
      See Also:
    • BUFFER_EMPTY Link icon

      public static final short BUFFER_EMPTY
      Buffer empty.
      See Also:
    • BUFFER_FULL Link icon

      public static final short BUFFER_FULL
      Buffer full.
      See Also:
    • UNDEFINED Link icon

      public static final int UNDEFINED
      Event type is undefined
      See Also:
    • eventType Link icon

      protected short eventType
      The sub-type
  • Constructor Details Link icon

    • Ping Link icon

      public Ping()
      Constructs a new Ping.
    • Ping Link icon

      public Ping(short eventType)

      Constructor for Ping.

      Parameters:
      eventType - a short
    • Ping Link icon

      public Ping(short eventType, int value2)

      Constructor for Ping.

      Parameters:
      eventType - a short
      value2 - a int
    • Ping Link icon

      public Ping(short eventType, Number value2)

      Constructor for Ping.

      Parameters:
      eventType - a short
      value2 - a Number object
    • Ping Link icon

      public Ping(short eventType, int value2, int value3)

      Constructor for Ping.

      Parameters:
      eventType - a short
      value2 - a int
      value3 - a int
    • Ping Link icon

      public Ping(short eventType, Number value2, int value3)

      Constructor for Ping.

      Parameters:
      eventType - a short
      value2 - a Number object
      value3 - a int
    • Ping Link icon

      public Ping(short eventType, int value2, int value3, int value4)

      Constructor for Ping.

      Parameters:
      eventType - a short
      value2 - a int
      value3 - a int
      value4 - a int
    • Ping Link icon

      public Ping(short eventType, Number value2, int value3, int value4)

      Constructor for Ping.

      Parameters:
      eventType - a short
      value2 - a Number object
      value3 - a int
      value4 - a int
    • Ping Link icon

      public Ping(Ping in)

      Constructor for Ping.

      Parameters:
      in - a Ping object
  • Method Details Link icon

    • getDataType Link icon

      public byte getDataType()
      Getter for data type
      Specified by:
      getDataType in interface IRTMPEvent
      Specified by:
      getDataType in class BaseEvent
      Returns:
      a byte
    • getEventType Link icon

      public short getEventType()
      Returns the events sub-type
      Returns:
      the event type
    • setEventType Link icon

      public void setEventType(short eventType)
      Sets the events sub-type
      Parameters:
      eventType - event type
    • getValue2 Link icon

      public Number getValue2()
      Getter for property 'value2'.
      Returns:
      Value for property 'value2'.
    • setValue2 Link icon

      public void setValue2(Number value2)
      Setter for property 'value2'.
      Parameters:
      value2 - Value to set for property 'value2'.
    • getValue3 Link icon

      public int getValue3()
      Getter for property 'value3'.
      Returns:
      Value for property 'value3'.
    • setValue3 Link icon

      public void setValue3(int value3)
      Setter for property 'value3'.
      Parameters:
      value3 - Value to set for property 'value3'.
    • getValue4 Link icon

      public int getValue4()
      Getter for property 'value4'.
      Returns:
      Value for property 'value4'.
    • setValue4 Link icon

      public void setValue4(int value4)
      Setter for property 'value4'.
      Parameters:
      value4 - Value to set for property 'value4'.
    • getDebug Link icon

      public String getDebug()
      Getter for property 'debug'.
      Returns:
      Value for property 'debug'.
    • setDebug Link icon

      public void setDebug(String debug)
      Setter for property 'debug'.
      Parameters:
      debug - Value to set for property 'debug'.
    • doRelease Link icon

      protected void doRelease()

      doRelease.

    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • releaseInternal Link icon

      protected void releaseInternal()
      Release event
      Specified by:
      releaseInternal in class BaseEvent
    • readExternal Link icon

      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      Specified by:
      readExternal in interface Externalizable
      Overrides:
      readExternal in class BaseEvent
      Throws:
      IOException
      ClassNotFoundException
    • writeExternal Link icon

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Overrides:
      writeExternal in class BaseEvent
      Throws:
      IOException