Commit Graph

23 Commits

Author SHA1 Message Date
scruzin 4c6c549f98 packet.writeTo now defends against a zero pkt.bodySize. 2019-01-13 14:28:24 +10:30
scruzin 9f3d49faa5 Tidied up some comments and simplified queuing logic in writeTo(). 2019-01-13 13:28:34 +10:30
scruzin dd562f1a28 Update comment to reflect new method names. 2019-01-13 13:15:03 +10:30
scruzin 21090a6595 Update doc comments to reflect new method names. 2019-01-13 13:14:12 +10:30
scruzin 82c010b6f7 packet.read/write -> readFrom/writeTo. 2019-01-13 13:09:29 +10:30
scruzin 9ff10dbbac Use amf.DecodeInt32LE() instead of decodeInt32LE(). 2019-01-13 10:01:03 +10:30
scruzin 9ca1a49178 Removed unused chunk type and associated unused code. 2019-01-13 07:46:47 +10:30
scruzin f13d4010cc Moved AMF functions into a new rtmp/amf package; names otherwise unchanged. 2019-01-12 07:13:27 +10:30
scruzin 19f245ae76 First cut at AMF refactoring; use idiomatic names. 2019-01-12 06:42:34 +10:30
scruzin 22b76b5bda Session.read()/write() both now return (int, error). 2019-01-11 10:35:20 +10:30
scruzin 5be5aad6cf Idiomatic names for constants (1st pass). 2019-01-11 09:52:21 +10:30
scruzin 82522643bb First cut at refactoring packet.write(). 2019-01-11 00:41:28 +10:30
scruzin 058cc41356 readPacket(), sendPacket() and resizePacket() now Packet methods read(), write() and resize() respectively. 2019-01-10 23:29:51 +10:30
scruzin 6a8e78a256 readN()/writeN() now Session.read()/write() respectfully. 2019-01-10 23:16:20 +10:30
scruzin 3c83ba0022 Added RTMP_PACKET_SIZE_AUTO. 2019-01-10 16:34:00 +10:30
scruzin 2333d1953e packetSize -> headerSizes. 2019-01-10 13:23:12 +10:30
scruzin e772d37a1b Warn about EOF errors. 2019-01-10 12:48:31 +10:30
scruzin 076a9c030a Better field names. 2019-01-09 22:51:07 +10:30
scruzin 0a69c59f50 Additional logging. 2019-01-09 17:33:19 +10:30
scruzin cbe6149c8f Added proper logging. 2019-01-07 23:59:41 +10:30
scruzin 04679e4757 Removed used fields and initalize packets lazily. 2019-01-07 21:45:00 +10:30
scruzin 8ed3c04186 Change log messages to reflect new function names. 2019-01-07 20:15:12 +10:30
scruzin 31b1a6a7d3 Made function names camel case and factored packet functions into packet.go. 2019-01-07 18:00:42 +10:30