[Live-devel] Add a "reason for leaving" in RTCP Bye packet

Ross Finlayson finlayson at live555.com
Mon Dec 10 10:58:01 PST 2018


> I think we’d have to change “setByeHandler()” to take, instead, a “ByeHandlerFunc*” as parameter, where we define “ByeHandlerFunc” to be something like:
> 	typedef void ByeHandlerFunc(void* clientData, char const* byeReason = NULL);
> Note that “byeReason” is an optional parameter.  I *think* that would be backwards compatible with existing code that calls “setByeHandler()”

Correction - it would be *mostly* backwards compatible.  Existing code that defines their own BYE handler routine would have to change its parameter signature to include the (optional) “byeReason” string.  But right now I don’t see any better solution...

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list