client: merge Client and ClientConn

This commit is contained in:
aler9
2021-11-01 00:15:50 +01:00
committed by Alessandro Ros
parent eef010a6e0
commit d1d766658b
18 changed files with 1917 additions and 1937 deletions

View File

@@ -19,18 +19,18 @@ func main() {
c := gortsplib.Client{}
conn, err := c.Dial(u.Scheme, u.Host)
err = c.Dial(u.Scheme, u.Host)
if err != nil {
panic(err)
}
defer conn.Close()
defer c.Close()
_, err = conn.Options(u)
_, err = c.Options(u)
if err != nil {
panic(err)
}
tracks, _, _, err := conn.Describe(u)
tracks, _, _, err := c.Describe(u)
if err != nil {
panic(err)
}