Update doc comments to reflect new method names.

This commit is contained in:
scruzin 2019-01-13 13:14:12 +10:30
parent 82c010b6f7
commit 21090a6595
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ type packet struct {
body []byte body []byte
} }
// read reads an RTMP packet. // readFrom reads an packet from the RTMP connection.
func (pkt *packet) readFrom(s *Session) error { func (pkt *packet) readFrom(s *Session) error {
var hbuf [fullHeaderSize]byte var hbuf [fullHeaderSize]byte
header := hbuf[:] header := hbuf[:]
@ -267,7 +267,7 @@ func (pkt *packet) resize(size uint32, ht uint8) {
} }
} }
// write sends an RTMP packet. // writeTo writes a packet to the RTMP connection.
// Packets are written in chunks which are Session.chunkSize in length (128 bytes in length). // Packets are written in chunks which are Session.chunkSize in length (128 bytes in length).
// We defers sending small audio packets and combine consecutive small audio packets where possible to reduce I/O. // We defers sending small audio packets and combine consecutive small audio packets where possible to reduce I/O.
// When queue is true, we expect a response to this request and cache the method on s.methodCalls. // When queue is true, we expect a response to this request and cache the method on s.methodCalls.