RTMP Connector upgrade to DTSC - push mode doesn't convert to DTSC yet (it will tomorrow) and it is still untested - but should work.
This commit is contained in:
parent
e7bcbc4f9f
commit
106adcffb8
2 changed files with 4 additions and 3 deletions
|
@ -222,9 +222,10 @@ std::string Socket::Connection::getStats(std::string C){
|
|||
}
|
||||
|
||||
/// Updates the downbuffer and upbuffer internal variables.
|
||||
void Socket::Connection::spool(){
|
||||
iread(downbuffer);
|
||||
/// Returns true if new data was received, false otherwise.
|
||||
bool Socket::Connection::spool(){
|
||||
iwrite(upbuffer);
|
||||
return iread(downbuffer);
|
||||
}
|
||||
|
||||
/// Returns a reference to the download buffer.
|
||||
|
|
|
@ -48,7 +48,7 @@ namespace Socket{
|
|||
bool swrite(std::string & buffer); ///< Write call that is compatible with std::string.
|
||||
bool iread(std::string & buffer); ///< Incremental write call that is compatible with std::string.
|
||||
bool iwrite(std::string & buffer); ///< Write call that is compatible with std::string.
|
||||
void spool(); ///< Updates the downbuffer and upbuffer internal variables.
|
||||
bool spool(); ///< Updates the downbuffer and upbuffer internal variables.
|
||||
std::string & Received(); ///< Returns a reference to the download buffer.
|
||||
void Send(std::string data); ///< Appends data to the upbuffer.
|
||||
void close(); ///< Close connection.
|
||||
|
|
Loading…
Add table
Reference in a new issue