Commit Graph

496 Commits

Author SHA1 Message Date
scruzin 6975f5172e Make member names camel case. 2019-01-07 13:33:07 +10:30
scruzin 189338d81b Removed since unused. 2019-01-07 13:25:14 +10:30
scruzin 9b14883bd3 Log packetType when sending. 2019-01-07 10:22:04 +10:30
scruzin 647f10f212 Only set ts in C_RTMP_SendPacket() when prevPacket != nil. 2019-01-07 08:44:04 +10:30
scruzin 3dccec4f35 Removed C_RTMP_SetBufferMS(). 2019-01-06 17:43:48 +10:30
scruzin 9335e2701d Fixed debug mode for C_RTMP_SendPacket(). 2019-01-06 17:17:51 +10:30
scruzin 309680f019 Removed references to C.RTMP_Free(). 2019-01-06 16:13:06 +10:30
scruzin 6133032a05 Moved conn from C_RTMPSockBuf to C_RTMP_LNK and deleted the former. 2019-01-06 15:54:49 +10:30
scruzin 474642f53b Simplified C_RTMP_IsConnected(). 2019-01-06 15:35:55 +10:30
scruzin c7b96f1c31 Check for an propagate encoding errors. 2019-01-06 15:19:58 +10:30
scruzin e876491f24 Removed since now obsolete. 2019-01-06 14:44:29 +10:30
scruzin 81b92b2302 All rmtp functions now return an error (or nothing), except for C_RTMP_IsConnected() which now returns a bool instead of an int. 2019-01-06 14:42:51 +10:30
scruzin b7871cb2f2 Prefix errors with rtmp: 2019-01-06 12:06:16 +10:30
scruzin 26157f47a2 Refactored C_ReadN() to use io.ReadFull() and removed now obsolete RTMPSockBuf_Fill(). 2019-01-06 10:11:31 +10:30
scruzin be1610b67f Use unsigned ints for timeouts. 2019-01-06 09:37:21 +10:30
scruzin e173153ca6 Use Go errors for C_RTMP_ParseURL, C_RTMP_SetupURL, C_RTMP_Connect1, and C_RTMP_ConnectStream. 2019-01-06 09:20:32 +10:30
scruzin 4d767f106c Make for Go idiomatic. 2019-01-06 08:25:46 +10:30
scruzin 513b84ad87 Further cleaned up sockets related code. 2019-01-05 23:13:19 +10:30
saxon e340c9b9be rtmp: removed debug prints 2019-01-02 21:55:43 +10:30
saxon 0b2c38117f revid: trying to fix rtmp 2019-01-02 21:28:20 +10:30
scruzin 04d7540b34 Replaced Unix sockets with IPConn. Sock_XXX funtions have been left as is for PR readability. 2019-01-02 18:20:30 +10:30
Dan Kortschak 50884b8034 rtmp: re-add recvtimeout option setting 2018-10-01 11:31:16 +09:30
Dan Kortschak c91896d919 rtmp: add SOCKS negotiation back 2018-10-01 09:10:53 +09:30
Dan Kortschak f61bd0a193 rtmp: use std net for connections 2018-09-30 18:59:01 +09:30
Dan Kortschak fcfdd69b8e rtmp: remove unsafe use from rtmp.go 2018-09-26 17:06:06 +09:30
Dan Kortschak 9c72a93763 rtmp: replace first half of C_RTMP_SendPacket pointer walk with index walk 2018-09-26 16:01:16 +09:30
Dan Kortschak d101946cfe rtmp: attempt to find some clarity of flow 2018-09-26 15:06:50 +09:30
Dan Kortschak b054ab103f rtmp: prepare for the horror of walking backwards 2018-09-26 14:52:07 +09:30
Dan Kortschak ac15477af1 rtmp: remove http-specific code 2018-09-26 14:39:46 +09:30
Dan Kortschak 5203982233 rtmp: remove direct unsafe use in C_RTMP_SendPacket 2018-09-26 14:37:53 +09:30
Dan Kortschak dc040ccf9c rtmp: simplify C_RTMP_SendPacket 2018-09-26 14:07:54 +09:30
Dan Kortschak 6e5e597b11 rtmp: use slices in C_RTMP_ReadPacket 2018-09-26 13:52:28 +09:30
Dan Kortschak 22c926611d rtmp: simplify header parsing 2018-09-26 13:22:44 +09:30
Dan Kortschak 85b74d6624 rtmp: fix C types for arm 2018-09-26 12:43:13 +09:30
Dan Kortschak e5faa396c1 rtmp: use C.CString
Now GODEBUG=cgocheck=0 is not needed.
2018-09-26 12:10:03 +09:30
Dan Kortschak d93357bb6f rtmp: remove unused functions 2018-09-26 12:10:03 +09:30
Dan Kortschak 43b3c8631d rtmp: remove unused memset 2018-09-26 12:10:03 +09:30
Dan Kortschak f25661ec2d rtmp: extract socket code into separate file 2018-09-26 12:10:03 +09:30
Dan Kortschak 29f7d24623 rtmp: clean up C_HandShake 2018-09-26 12:10:03 +09:30
Dan Kortschak cb47db73c8 rtmp: make C_RTMPPacket.m_body a []byte
Punt on, but prepare for, the more ridiculous C-isms.
2018-09-26 12:10:03 +09:30
Dan Kortschak 467984513b rtmp: make C_CloseInternal reconnect a bool 2018-09-26 12:10:03 +09:30
Dan Kortschak 0eb66a6ece rtmp: make C_HandleInvoke take a []byte 2018-09-26 12:10:03 +09:30
Dan Kortschak b1ecf52a44 rtmp: fix incorrect type 2018-09-26 12:10:03 +09:30
Dan Kortschak 9cfe8c430b rtmp: use []byte for RTMP message sends 2018-09-26 12:10:03 +09:30
Dan Kortschak eccc9377ab rtmp: use []byte for encoding in C_SendConnectPacket 2018-09-26 12:10:03 +09:30
Dan Kortschak 55e454453b rtmp: remove unnecessary zeroing 2018-09-26 12:10:03 +09:30
Dan Kortschak eeb1e1933b rtmp: make C_ReadN take a []byte 2018-09-26 12:10:03 +09:30
Dan Kortschak 5f3f50373b rtmp: clean up C_SocksNegotiate 2018-09-26 12:10:03 +09:30
Dan Kortschak d1f870223c rtmp: make C_WriteN take a []byte 2018-09-26 12:10:03 +09:30
Dan Kortschak 7b69015873 rtmp: make C_RTMPSockBuf_Send take a []byte 2018-09-26 12:10:03 +09:30