253 return std::string(
"No error");
256 while (ErrorDescriptions[i].
code != 0)
258 if (ErrorDescriptions[i].
code == errcode)
259 return std::string(ErrorDescriptions[i].
description);
267 return std::string(
"Unknown error code") + std::string(str);
#define ERR_RTP_INTERNALSOURCEDATA_INVALIDPROBATIONTYPE
#define ERR_RTP_TCPTRANS_ALREADYWAITING
#define ERR_RTP_TCPTRANS_SPECIFIEDSIZETOOBIG
#define ERR_RTP_SOURCES_DONTHAVEOWNSSRC
#define ERR_RTP_PACKBUILD_CSRCNOTINLIST
#define ERR_RTP_SOURCES_ALREADYHAVEOWNSSRC
#define ERR_RTP_RTPRANDOMURANDOM_CANTOPEN
#define ERR_RTP_RTCPCOMPPACKBUILDER_NOTENOUGHBYTESLEFT
#define ERR_RTP_FAKETRANS_DIFFERENTRECEIVEMODE
#define ERR_RTP_FAKETRANS_PORTBASENOTEVEN
#define ERR_RTP_FAKETRANS_NOTCREATED
#define ERR_RTP_UDPV4TRANS_NOSUCHENTRY
#define ERR_RTP_SELECT_ERRORINPOLL
#define ERR_RTP_UDPV4TRANS_CANTSETRTCPRECEIVEBUF
#define ERR_RTP_UDPV4TRANS_ILLEGALPARAMETERS
#define ERR_RTP_UDPV6TRANS_CANTCREATESOCKET
#define ERR_RTP_UDPV6TRANS_NOLOCALIPS
#define ERR_RTP_EXTERNALTRANS_CANTINITMUTEX
#define ERR_RTP_TCPTRANS_CANTINITMUTEX
#define ERR_RTP_UDPV6TRANS_CANTINITMUTEX
#define ERR_RTP_PACKBUILD_DEFAULTPAYLOADTYPENOTSET
#define ERR_RTP_UDPV4TRANS_CANTCREATESOCKET
#define ERR_RTP_UDPV4TRANS_CANTGETSOCKETPORT
#define ERR_RTP_PACKET_INVALIDPACKET
#define ERR_RTP_UDPV4TRANS_TOOMANYATTEMPTSCHOOSINGSOCKET
#define ERR_RTP_RTCPPACKETBUILDER_ILLEGALTIMESTAMPUNIT
#define ERR_RTP_SESSION_CANTGETLOGINNAME
#define ERR_RTP_EXTERNALTRANS_SPECIFIEDSIZETOOBIG
#define ERR_RTP_UDPV6TRANS_NOMULTICASTSUPPORT
#define ERR_RTP_UDPV4TRANS_COULDNTJOINMULTICASTGROUP
#define ERR_RTP_UDPV6TRANS_DIFFERENTRECEIVEMODE
#define ERR_RTP_ABORTDESC_NOTINIT
#define ERR_RTP_SESSION_UNSUPPORTEDTRANSMISSIONPROTOCOL
#define ERR_RTP_PACKBUILD_DEFAULTTSINCNOTSET
#define ERR_RTP_UDPV6TRANS_ALREADYCREATED
#define ERR_RTP_UDPV4TRANS_SOCKETPORTNOTSET
#define ERR_RTP_TCPTRANS_NOTWAITING
#define ERR_RTP_SOURCES_ILLEGALSDESTYPE
#define ERR_RTP_UDPV6TRANS_CANTBINDRTCPSOCKET
#define ERR_RTP_SESSION_USERDEFINEDTRANSMITTERNULL
#define ERR_RTP_RTCPPACKETBUILDER_ALREADYINIT
#define ERR_RTP_UDPV4TRANS_ALREADYWAITING
#define ERR_RTP_EXTERNALTRANS_NOTCREATED
#define ERR_RTP_UDPV6TRANS_CANTSETRTPTRANSMITBUF
#define ERR_RTP_TCPTRANS_ERRORINRECV
#define ERR_RTP_UDPV4TRANS_CANTSETRTCPTRANSMITBUF
#define ERR_RTP_RTCPCOMPPACKBUILDER_ALREADYBUILT
#define ERR_RTP_KEYHASHTABLE_KEYALREADYEXISTS
#define ERR_RTP_UDPV4TRANS_CANTGETVALIDSOCKET
#define ERR_RTP_FAKETRANS_ILLEGALPARAMETERS
#define ERR_RTP_EXTERNALTRANS_SENDERROR
#define ERR_RTP_RTCPCOMPPACKBUILDER_REPORTNOTSTARTED
#define ERR_RTP_SECURESESSION_NOTENOUGHDATATOENCRYPT
#define ERR_RTP_RTPRANDOMURANDOM_ALREADYOPEN
#define ERR_RTP_SESSION_MAXPACKETSIZETOOSMALL
#define ERR_RTP_SDES_MAXPRIVITEMS
#define ERR_RTP_SESSION_NOTCREATED
#define ERR_RTP_SECURESESSION_CANTENCRYPTRTPDATA
#define ERR_RTP_ABORTDESC_CANTCREATEABORTDESCRIPTORS
#define ERR_RTP_UDPV4TRANS_NOLOCALIPS
#define ERR_RTP_PACKBUILD_NOTINIT
#define ERR_RTP_POLLTHREAD_CANTINITMUTEX
#define ERR_RTP_UDPV4TRANS_NOTINIT
#define ERR_RTP_ABORTDESC_ALREADYINIT
#define ERR_RTP_HASHTABLE_FUNCTIONRETURNEDINVALIDHASHINDEX
#define ERR_RTP_UDPV4TRANS_INVALIDSOCKETTYPE
#define ERR_RTP_FAKETRANS_ALREADYINIT
#define ERR_RTP_PACKET_ILLEGALBUFFERSIZE
#define ERR_RTP_RTCPCOMPPACKBUILDER_ALREADYBUILDING
#define ERR_RTP_ABORTDESC_CANTCREATEPIPE
#define ERR_RTP_RTPSESSION_CHANGEREQUESTEDBUTNOTIMPLEMENTED
#define ERR_RTP_UDPV6TRANS_ALREADYWAITING
#define ERR_RTP_TCPTRANS_SOCKETALREADYINDESTINATIONS
#define ERR_RTP_UDPV4TRANS_NOTANIPV4SOCKET
#define ERR_RTP_SESSION_ALREADYCREATED
#define ERR_RTP_UDPV4TRANS_CANTGETSOCKETTYPE
#define ERR_RTP_UDPV6TRANS_NOSUCHENTRY
#define ERR_RTP_EXTERNALTRANS_NODESTINATIONSSUPPORTED
#define ERR_RTP_TCPTRANS_ALREADYINIT
#define ERR_RTP_PACKET_TOOMANYCSRCS
#define ERR_RTP_FAKETRANS_NOMULTICASTSUPPORT
#define ERR_RTP_RTCPCOMPPACKBUILDER_BUFFERSIZETOOSMALL
#define ERR_RTP_UDPV6TRANS_NOTINIT
#define ERR_RTP_UDPV4TRANS_CANTINITMUTEX
#define ERR_RTP_SCHEDPARAMS_INVALIDBANDWIDTH
#define ERR_RTP_FAKETRANS_NOSUCHENTRY
#define ERR_RTP_EXTERNALTRANS_ALREADYCREATED
#define ERR_RTP_FAKETRANS_SPECIFIEDSIZETOOBIG
#define ERR_RTP_UDPV6TRANS_CANTBINDRTPSOCKET
#define ERR_RTP_PACKBUILD_CSRCLISTFULL
#define ERR_RTP_EXTERNALTRANS_NOTINIT
#define ERR_RTP_UDPV6TRANS_ALREADYINIT
#define ERR_RTP_UDPV6TRANS_INVALIDADDRESSTYPE
#define ERR_RTP_RTCPCOMPPACKBUILDER_ILLEGALSUBTYPE
#define ERR_RTP_SECURESESSION_CANTINITIALIZE_SRTPCONTEXT
#define ERR_RTP_RTCPCOMPPACKBUILDER_INVALIDITEMTYPE
#define ERR_RTP_TCPTRANS_ALREADYCREATED
#define ERR_RTP_FAKETRANS_INVALIDADDRESSTYPE
#define ERR_RTP_UDPV6TRANS_PORTBASENOTEVEN
#define ERR_RTP_KEYHASHTABLE_FUNCTIONRETURNEDINVALIDHASHINDEX
#define ERR_RTP_RTCPCOMPPACKBUILDER_ILLEGALAPPDATALENGTH
#define ERR_RTP_SECURESESSION_NOTENOUGHDATATODECRYPT
#define ERR_RTP_RTCPPACKETBUILDER_ILLEGALMAXPACKSIZE
#define ERR_RTP_FAKETRANS_CANTINITMUTEX
#define ERR_RTP_EXTERNALTRANS_NOIGNORELIST
#define ERR_RTP_UDPV4TRANS_PORTBASENOTEVEN
#define ERR_RTP_UDPV6TRANS_ILLEGALPARAMETERS
#define ERR_RTP_EXTERNALTRANS_ILLEGALPARAMETERS
#define ERR_RTP_UDPV6TRANS_NOTCREATED
#define ERR_RTP_PACKET_EXTERNALBUFFERNULL
#define ERR_RTP_TCPTRANS_NOMULTICASTSUPPORT
#define ERR_RTP_FAKETRANS_NOTINIT
#define ERR_RTP_PACKET_DATAEXCEEDSMAXSIZE
#define ERR_RTP_TCPTRANS_SOCKETNOTFOUNDINDESTINATIONS
#define ERR_RTP_SCHEDPARAMS_BADFRACTION
#define ERR_RTP_SOURCES_SSRCEXISTS
#define ERR_RTP_FAKETRANS_NOTAMULTICASTADDRESS
#define ERR_RTP_RTCPCOMPPACKBUILDER_NOREPORTPRESENT
#define ERR_RTP_TCPTRANS_ERRORINSEND
#define ERR_RTP_TCPTRANS_RECEIVEMODENOTSUPPORTED
#define ERR_RTP_SELECT_ERRORINSELECT
#define ERR_RTP_RTCPCOMPPACKBUILDER_NOTBUILDING
#define ERR_RTP_UDPV4TRANS_INVALIDADDRESSTYPE
#define ERR_RTP_TCPTRANS_NOTINIT
#define ERR_RTP_COLLISIONLIST_BADADDRESS
#define ERR_RTP_POLLTHREAD_ALREADYRUNNING
#define ERR_RTP_UDPV6TRANS_SPECIFIEDSIZETOOBIG
#define ERR_RTP_FAKETRANS_WAITNOTIMPLEMENTED
#define ERR_RTP_RTCPCOMPPACKBUILDER_TOOMANYSSRCS
#define ERR_RTP_RTCPPACKETBUILDER_PACKETFILLEDTOOSOON
#define ERR_RTP_SECURESESSION_CANTDECRYPTRTCPDATA
#define ERR_RTP_SDES_PREFIXNOTFOUND
#define ERR_RTP_UDPV6TRANS_NOTWAITING
#define ERR_RTP_SESSION_THREADSAFETYCONFLICT
#define ERR_RTP_TCPTRANS_ILLEGALPARAMETERS
#define ERR_RTP_FAKETRANS_NOLOCALIPS
#define ERR_RTP_UDPV4TRANS_CANTBINDRTPSOCKET
#define ERR_RTP_EXTERNALTRANS_ALREADYWAITING
#define ERR_RTP_FAKETRANS_ALREADYCREATED
#define ERR_RTP_TCPTRANS_NOTCREATED
#define ERR_RTP_UDPV4TRANS_ALREADYCREATED
#define ERR_RTP_EXTERNALTRANS_BADRECEIVEMODE
#define ERR_RTP_PACKBUILD_ALREADYINIT
#define ERR_RTP_EXTERNALTRANS_NOTWAITING
#define ERR_RTP_SELECT_SOCKETDESCRIPTORTOOLARGE
#define ERR_RTP_SESSION_CANTINITMUTEX
#define ERR_RTP_TCPTRANS_INVALIDADDRESSTYPE
#define ERR_RTP_RTCPPACKETBUILDER_NOTINIT
#define ERR_RTP_UDPV4TRANS_CANTSETRTPTRANSMITBUF
#define ERR_RTP_RTPRANDOMRANDS_NOTSUPPORTED
#define ERR_RTP_NOTHREADSUPPORT
#define ERR_RTP_UDPV4TRANS_NOTAMULTICASTADDRESS
#define ERR_RTP_UDPV6TRANS_COULDNTJOINMULTICASTGROUP
#define ERR_RTP_UDPV4TRANS_DIFFERENTRECEIVEMODE
#define ERR_RTP_SDES_LENGTHTOOBIG
#define ERR_RTP_SECURESESSION_CONTEXTALREADYINITIALIZED
#define ERR_RTP_EXTERNALTRANS_ALREADYINIT
#define ERR_RTP_UDPV4TRANS_CANTBINDRTCPSOCKET
#define ERR_RTP_KEYHASHTABLE_KEYNOTFOUND
#define ERR_RTP_TCPTRANS_NOSOCKETSPECIFIED
#define ERR_RTP_TRANS_BUFFERLENGTHTOOSMALL
#define ERR_RTP_SECURESESSION_CANTDECRYPTRTPDATA
#define ERR_RTP_UDPV4TRANS_CANTSETRTPRECEIVEBUF
#define ERR_RTP_RTCPCOMPPACKBUILDER_ALREADYGOTREPORT
std::string RTPGetErrorString(int errcode)
#define ERR_RTP_UDPV4TRANS_ALREADYINIT
#define ERR_RTP_RTCPCOMPPACKBUILDER_TOTALITEMLENGTHTOOBIG
#define ERR_RTP_POLLTHREAD_CANTSTARTTHREAD
#define ERR_RTP_RTCPCOMPOUND_INVALIDPACKET
#define ERR_RTP_SECURESESSION_CONTEXTNOTINITIALIZED
#define ERR_RTP_RTCPCOMPPACKBUILDER_NOCURRENTSOURCE
#define ERR_RTP_UDPV4TRANS_NOTWAITING
#define ERR_RTP_FAKETRANS_COULDNTJOINMULTICASTGROUP
#define ERR_RTP_EXTERNALTRANS_NOMULTICASTSUPPORT
#define ERR_RTP_HASHTABLE_ELEMENTNOTFOUND
#define ERR_RTP_UDPV4TRANS_NOTCREATED
#define ERR_RTP_EXTERNALTRANS_NOSENDER
#define ERR_RTP_SESSION_USINGPOLLTHREAD
#define ERR_RTP_HASHTABLE_NOCURRENTELEMENT
#define ERR_RTP_SECURESESSION_CANTENCRYPTRTCPDATA
#define ERR_RTP_RTCPCOMPPACKBUILDER_APPDATALENTOOBIG
#define ERR_RTP_SECURESESSION_CANTINITMUTEX
#define ERR_RTP_PACKET_BADPAYLOADTYPE
#define ERR_RTP_PACKBUILD_INVALIDMAXPACKETSIZE
#define ERR_RTP_PACKBUILD_CSRCALREADYINLIST
#define ERR_RTP_UDPV6TRANS_CANTSETRTCPRECEIVEBUF
#define ERR_RTP_UDPV4TRANS_SPECIFIEDSIZETOOBIG
#define ERR_RTP_PACKBUILD_DEFAULTMARKNOTSET
#define ERR_RTP_UDPV6TRANS_CANTSETRTCPTRANSMITBUF
#define ERR_RTP_SCHEDPARAMS_BADMINIMUMINTERVAL
#define ERR_RTP_HASHTABLE_ELEMENTALREADYEXISTS
#define ERR_RTP_KEYHASHTABLE_NOCURRENTELEMENT
#define ERR_RTP_UDPV4TRANS_NOMULTICASTSUPPORT
#define ERR_RTP_RTCPCOMPPACKBUILDER_MAXPACKETSIZETOOSMALL
#define ERR_RTP_UDPV6TRANS_NOTAMULTICASTADDRESS
#define ERR_RTP_EXTERNALTRANS_NOACCEPTLIST
#define ERR_RTP_UDPV6TRANS_CANTSETRTPRECEIVEBUF