Commit Graph

33 Commits

Author SHA1 Message Date
scruzin 04ad1fec25 Log packet size before la and ra. 2019-01-20 09:20:56 +10:30
scruzin 969e2f4fa9 packet.resize() now only makes a new buf when necessary. 2019-01-20 08:41:32 +10:30
scruzin ddd1e4ab17 readFrom() now logs a warning if it is reading a large packet (which I suspect never happens). 2019-01-20 08:09:49 +10:30
scruzin 828cc3780a Removed superfluous packet.bytesRead. 2019-01-20 07:56:55 +10:30
scruzin 6959243d50 packet.info renamed streamID and made a uint32 along with Conn.streamID. 2019-01-19 17:51:34 +10:30
scruzin 45f5817307 headBytes renamed buf. 2019-01-19 16:41:22 +10:30
scruzin b77283aa3b packet.header renamed buf. 2019-01-19 16:38:40 +10:30
scruzin 5548345439 Fix comments munged by /.s/.c search and replaces. 2019-01-19 15:18:10 +10:30
scruzin a73c73617a Session now Conn. 2019-01-19 13:11:19 +10:30
scruzin e778488aba Session.inChunkSize, outChunkSize, nBytesIn, nBytesInSent, serverBW, clientBW and clientBW2 now all uint32 to avoid needless conversions. 2019-01-14 10:17:47 +10:30
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