10 #include <arpa/inet.h>    53   extern std::map<unsigned int, Chunk> 
lastsend;
    54   extern std::map<unsigned int, Chunk> 
lastrecv;
    56   std::string & 
SendChunk(
unsigned int cs_id, 
unsigned char msg_type_id, 
unsigned int msg_stream_id, std::string data);
    57   std::string & 
SendMedia(
unsigned char msg_type_id, 
unsigned char * data, 
int len, 
unsigned int ts);
    59   std::string & 
SendCTL(
unsigned char type, 
unsigned int data);
    60   std::string & 
SendCTL(
unsigned char type, 
unsigned int data, 
unsigned char data2);
    61   std::string & 
SendUSR(
unsigned char type, 
unsigned int data);
    62   std::string & 
SendUSR(
unsigned char type, 
unsigned int data, 
unsigned int data2);
 unsigned int cs_id
ContentStream ID. 
Definition: rtmpchunks.h:36
unsigned int len_left
Length not yet received, out of complete chunk. 
Definition: rtmpchunks.h:42
unsigned int snd_window_at
Current position of the sending window. 
Definition: rtmpchunks.h:26
unsigned int rec_window_at
Current position of the receiving window. 
Definition: rtmpchunks.h:25
timeval lastrec
Timestamp of last time data was received. 
Definition: rtmpchunks.h:30
This class is used to hold, work with and get information about a single FLV tag. ...
Definition: flv_tag.h:29
A buffer made out of std::string objects that can be efficiently read from and written to...
Definition: socket.h:28
std::string handshake_out
This value is the handshake response that is to be sent out. 
Definition: rtmpchunks.h:67
std::string handshake_in
This value should be set to the first 1537 bytes received. 
Definition: rtmpchunks.h:65
unsigned int real_len
Length of this particular part of it. 
Definition: rtmpchunks.h:41
std::string & SendUSR(unsigned char type, unsigned int data, unsigned int data2)
Packs up a chunk for a user control message with 2 arguments. 
Definition: rtmpchunks.cpp:310
unsigned int timestamp
Timestamp of this chunk. 
Definition: rtmpchunks.h:37
unsigned int rec_cnt
Counter for total data received, in bytes. 
Definition: rtmpchunks.h:27
bool doHandshake()
Does the handshake. Expects handshake_in to be filled, and fills handshake_out. 
Definition: rtmpchunks.cpp:506
unsigned int len
Length of the complete chunk. 
Definition: rtmpchunks.h:40
unsigned int msg_stream_id
Message Stream ID. 
Definition: rtmpchunks.h:44
std::map< unsigned int, Chunk > lastsend
Holds the last sent chunk for every msg_id. 
Definition: rtmpchunks.h:53
unsigned char msg_type_id
Message Type ID. 
Definition: rtmpchunks.h:43
unsigned int ts_header
Last header timestamp without extensions or deltas. 
Definition: rtmpchunks.h:39
unsigned int ts_delta
Last timestamp delta. 
Definition: rtmpchunks.h:38
unsigned int rec_window_size
Window size for receiving. 
Definition: rtmpchunks.h:23
std::string data
Payload of chunk. 
Definition: rtmpchunks.h:45
std::string & SendCTL(unsigned char type, unsigned int data, unsigned char data2)
Packs up a chunk for a control message with 2 arguments. 
Definition: rtmpchunks.cpp:277
This namespace holds all FLV-parsing related functionality. 
Definition: flv_tag.h:18
unsigned int snd_window_size
Window size for sending. 
Definition: rtmpchunks.h:24
Holds a single RTMP chunk, either send or receive direction. 
Definition: rtmpchunks.h:33
unsigned char headertype
For input chunks, the type of header. This is calculated automatically for output chunks...
Definition: rtmpchunks.h:35
std::string & SendMedia(FLV::Tag &tag)
Packs up a chunk with media contents. 
Definition: rtmpchunks.cpp:238
std::string & SendChunk(unsigned int cs_id, unsigned char msg_type_id, unsigned int msg_stream_id, std::string data)
Packs up a chunk with the given arguments as properties. 
Definition: rtmpchunks.cpp:205
std::map< unsigned int, Chunk > lastrecv
Holds the last received chunk for every msg_id. 
Definition: rtmpchunks.h:54
unsigned int snd_cnt
Counter for total data sent, in bytes. 
Definition: rtmpchunks.h:28
unsigned int chunk_rec_max
Maximum size for a received chunk. 
Definition: rtmpchunks.h:21
Contains all functions and classes needed for RTMP connections. 
Definition: flv_tag.h:13
ts
Definition: CMakeLists.txt:323
unsigned int chunk_snd_max
Maximum size for a sent chunk. 
Definition: rtmpchunks.h:22