// If successful returns the C1 handshake data (random data sent by the client), it does not return c0 + c1.
If successful returns the C1 handshake data (random data sent by the client), it does not return c0 + c1.
// If successful returns the C1 handshake data ( random data sent by the client ) it does not return c0 + c1 .
func (h *Handshaker) readC0C1() ([]byte, error) {
	var c0c1 [1537]byte
	if _, err := io.ReadFull(h.reader, c0c1[:]); err != nil {
		return nil, err
	}
	if c0c1[0] != RtmpVersion3 {
		return nil, ErrUnsupportedRTMPVersion
	}
	return c0c1[1:], nil
}
func ( h * Handshaker ) readC0C1 ( ) ( [ ] byte , error ) { var c0c1 [ 1537 ] byte if _ , err := io . ReadFull ( h . reader , c0c1 [ : ] ) ; err != nil { return nil , err } if c0c1 [ 0 ] != RtmpVersion3 { return nil , ErrUnsupportedRTMPVersion } return c0c1 [ 1 : ] , nil }
If successful returns the C1 handshake data (random data sent by the client), it does not return c0 + c1.
If successful returns the C1 handshake data ( random data sent by the client ) it does not return c0 + c1 .
// Returns c1 message