Commit Graph

41 Commits

Author SHA1 Message Date
Scott e116e197ae Changed all %v's to %w's where appropriate 2019-12-04 14:12:20 +10:30
Saxon 9e07984848 protocol/rtsp: added package comment. 2019-05-09 12:17:11 +09:30
Saxon e823ebca48 protocol/rtsp: using strings.Prefix in ReadResponse to check that protocol is correct 2019-04-30 21:43:04 +09:30
Saxon a025d55d81 protocol/rtsp: using Fprintf with strings.Builder in Request.String() and Response.String() 2019-04-30 21:41:46 +09:30
Saxon 8196df52d7 protocol/rtsp: added newline after file headers 2019-04-30 21:32:05 +09:30
Saxon 86bf4cdb90 protocol/rtsp: TestReadResponse now working 2019-04-29 19:28:18 +09:30
Saxon d2b76fab36 protocol/rtsp: wrote test ReadResponse, but work in progress 2019-04-29 18:21:59 +09:30
Saxon 0a27395aea protocol/rtsp: doing length check in same if but before RTSP protocol check 2019-04-29 13:35:58 +09:30
Saxon 64f6a3d814 protocol/rtsp: used utter/dump to get ASCII text as well 2019-04-29 13:34:09 +09:30
Saxon eac5652f1b protocol/rtsp: in ReadResponse response length check comes before protocol check 2019-04-29 13:19:32 +09:30
Saxon 66bc6bbe33 protocol/rtsp: only giving Sscanf s[5:] and then checking number of decimals read as well as error 2019-04-29 13:08:05 +09:30
Saxon 77e5d234de protocol/rtsp: doing RTSP and response length check in same if 2019-04-29 13:03:39 +09:30
Saxon ba5a0d898c protocol/rtsp: removed status 2019-04-29 13:01:17 +09:30
Saxon d91995a1cf protocol/rtsp: using bufio.Scanner 2019-04-28 14:04:45 +09:30
Saxon d7c2421146 protocol/rtsp: fixed sscanf in ReadResponse 2019-04-28 13:51:25 +09:30
Saxon fa7c3044f3 protocol/rtsp: simplified ReadResponse further by using only one sscanf 2019-04-28 13:23:35 +09:30
Saxon 9abcfb138b protocol/rtsp: checking error from scans 2019-04-28 12:27:54 +09:30
Saxon 39d0b5d6da protocol/rtsp: using sscanf to parse response 2019-04-28 02:35:13 +09:30
Saxon a57d3f66ff protocol/rtsp: using int rather than int64 for Response.ConentLength 2019-04-28 01:32:44 +09:30
Saxon 94660e730b protocol/rtsp: using strings.Builder to write String formats for Request and Response 2019-04-28 01:29:47 +09:30
Saxon eb6b5a04b0 protocol/rtsp: indicate that minResponse size is in bytes 2019-04-28 00:58:33 +09:30
Saxon 31508f8940 protocol/rtsp: removed pre-existing license 2019-04-28 00:57:40 +09:30
Saxon 07e7235dc4 protocol/rtsp: using string literals for request methods 2019-04-28 00:53:47 +09:30
Saxon f2b941394b protocol/rtsp: fixed read response bug 2019-04-26 19:51:00 +09:30
Saxon 999eab21ab protocol/rtsp: cleaned up ReadResponse 2019-04-26 19:46:03 +09:30
Saxon 3e17016390 protocol/rtsp: updated licensing 2019-04-26 16:01:57 +09:30
Saxon 14cb6f7f07 protocol/rtsp: reflect go net.http package patterns
Request now has a Write receiver method that will write to the passed io.Writer. Client now has Do method that will send the request and return the respons and any errors. Also Renamed the Client
field to Session, which was mistakenly changed.
2019-04-26 14:20:58 +09:30
Saxon a0fb299b06 protocol/rtsp: moved client functionality into client.go file 2019-04-26 13:57:18 +09:30
Saxon 9169afe34f protocol/rtsp: general clean up 2019-04-25 15:30:28 +09:30
Saxon f3f3be5fc6 protocol/rtsp: completed test for rtsp
Completed test to check that each method we support works and can produce valid requests. The requests are compared to requests that have been proven valid. This test also checks that the RTSP
client communicates over tcp correctly. i.e. we have set up a client and server, and we check that this communication happens correctly.
2019-04-25 14:46:21 +09:30
Saxon a256dc9133 protocol/rtsp: made rtsp/cmd/stream functional 2019-04-23 16:22:58 +09:30
Saxon 34c59c95d6 protocol/rtsp: working on main.go in rtsp/cmd/stream
Added file header to main.go, and modified rtsp.go to work with cmd/stream/main.go. This change modifies writeRequest, which now takes a *url.URL. This means the Setup() method can parse a new
URL that contains a given track, and then give this to writeRequest.
2019-04-23 15:49:54 +09:30
Saxon d03ae3ff7e protocol/rtsp: fixed rtsp.go file header indentation 2019-04-23 15:33:07 +09:30
Saxon e87eadf8fd protocol/rtsp/rtsp.go: commenting and general clean up. 2019-04-17 18:31:03 +09:30
Saxon c9082c1b4c protocol/rtsp/rtsp.go: put tcp dial in new session
tcp dial is now in new session, firstly so that we don't have to do the s.conn == nil check and also so that we dont't have to pass around the url everywhere.
2019-04-17 12:45:02 +09:30
Saxon 02c11c234f protocol/rtsp/rtsp.go: added back beatgammits structs
Added them back because i realised I can't use http Requests and Responses and the accompanying methods because then this wouldn't be the RTSP protocol, it would be the HTTP protocol, which is not what we're doing.
2019-04-17 12:18:23 +09:30
Saxon 0543cb0968 protocol/rtsp/rtsp.go: got rid of NewRequest and put logic into writeRequest 2019-04-17 10:20:49 +09:30
Saxon 948e9a67e1 protocol/rtsp/rtsp.go: simplified RTSP method functions wrap a single writeRequest func 2019-04-17 09:05:34 +09:30
Saxon cd7e2ce3f3 protocol/rtsp: removed response writer interface, which was just http.ResponseWriter 2019-04-17 07:51:34 +09:30
Saxon 9de1b541a9 protocol/rtsp: removed unused stuff
Firstly removed unused RTSP method string consts. Also removed all the unused http response codes. Removed
ReadRequest, as this was also not used.
2019-04-16 23:32:50 +09:30
Saxon 4a97a626a0 protocol/rtsp: added beatgammits pkg and also my stream/main.go program
Most of this is unmodified except for the stream/main.go program. I am going to use this as a test that simply streams from an RTSP server to vlc.
2019-04-16 22:47:13 +09:30