Package org.red5.server.net.rtmp
Class Channel
- java.lang.Object
-
- org.red5.server.net.rtmp.Channel
-
public class Channel extends Object
Identified connection that transfers packets.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description Channel(RTMPConnection conn, int channelId)
Creates channel from connection and channel id
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes channel with this id on RTMP connection.protected RTMPConnection
getConnection()
Getter for RTMP connection.int
getId()
Getter for id.void
sendStatus(Status status)
Sends status notification.String
toString()
void
write(IRTMPEvent event)
Writes packet from event data to RTMP connection.
-
-
-
Constructor Detail
-
Channel
public Channel(RTMPConnection conn, int channelId)
Creates channel from connection and channel id- Parameters:
conn
- ConnectionchannelId
- Channel id
-
-
Method Detail
-
close
public void close()
Closes channel with this id on RTMP connection.
-
getId
public int getId()
Getter for id.- Returns:
- Channel ID
-
getConnection
protected RTMPConnection getConnection()
Getter for RTMP connection.- Returns:
- RTMP connection
-
write
public void write(IRTMPEvent event)
Writes packet from event data to RTMP connection.- Parameters:
event
- Event data
-
sendStatus
public void sendStatus(Status status)
Sends status notification.- Parameters:
status
- Status
-
-