thelazyfox / gortmp

Implement RTMP protocol by golang
MIT License
2 stars 0 forks source link

handle http + rtmp #4

Open thelazyfox opened 10 years ago

thelazyfox commented 10 years ago

one way to do it is to make a special listener that accepts tcp connections, reads the first few bytes, and then produces a struct with an embedded net.Conn that overrides read to have a multireader which reads the first few bytes and then reads from the net.Conn