golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
390 B
25 lines
390 B
package rtsp |
|
|
|
import ( |
|
"net" |
|
) |
|
|
|
type Conn struct { |
|
net.Conn |
|
} |
|
|
|
func (c *Conn) ReadRequest() (*Request, error) { |
|
return requestDecode(c) |
|
} |
|
|
|
func (c *Conn) WriteRequest(req *Request) error { |
|
return requestEncode(c, req) |
|
} |
|
|
|
func (c *Conn) ReadResponse() (*Response, error) { |
|
return responseDecode(c) |
|
} |
|
|
|
func (c *Conn) WriteResponse(res *Response) error { |
|
return responseEncode(c, res) |
|
}
|
|
|