# UserControl

class UserControl(var type: Type = Type.PING_REQUEST, var event: Event = Event(-1, -1)) : RtmpMessage

Created by pedro on 21/04/21.

## Constructors

UserControl
Link copied to clipboard
constructor(type: Type = Type.PING_REQUEST, event: Event = Event(-1, -1))

## Properties

event
Link copied to clipboard
var event: Event
header
Link copied to clipboard
val header: RtmpHeader
type
Link copied to clipboard
var type: Type

## Functions

getSize
Link copied to clipboard
open override fun getSize(): Int
getType
Link copied to clipboard
open override fun getType(): MessageType
readBody
Link copied to clipboard
open override fun readBody(input: InputStream)
storeBody
Link copied to clipboard
open override fun storeBody(): ByteArray
toString
Link copied to clipboard
open override fun toString(): String
updateHeader
Link copied to clipboard
fun updateHeader(rtmpHeader: RtmpHeader)
writeBody
Link copied to clipboard
suspend fun writeBody(socket: RtmpSocket)
writeHeader
Link copied to clipboard
suspend fun writeHeader(socket: RtmpSocket)