io.agora.rtc

## Class AgoraMediaCtrlPacketSender

- java.lang.Object
- - io.agora.rtc.AgoraMediaCtrlPacketSender

-     public class AgoraMediaCtrlPacketSender
      extends java.lang.Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private long` | `cptr`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AgoraMediaCtrlPacketSender(long cptr)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `destroy()`
    `private void` | `nativeDestroy(long cptr)`
    `int` | `sendBroadcast(byte[] packet, int length)`
    `int` | `sendPeer(java.lang.String user_id, byte[] packet, int length)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### cptr

          private long cptr

  - ### Constructor Detail

    - #### AgoraMediaCtrlPacketSender

          public AgoraMediaCtrlPacketSender(long cptr)

  - ### Method Detail

    - #### sendPeer

          public int sendPeer(java.lang.String user_id,
                              byte[] packet,
                              int length)

    - #### sendBroadcast

          public int sendBroadcast(byte[] packet,
                                   int length)

    - #### destroy

          public void destroy()

    - #### nativeDestroy

          private void nativeDestroy(long cptr)