This commit is contained in:
aler9
2021-04-04 19:40:21 +02:00
parent 5847b507d1
commit fc3d84be56
5 changed files with 44 additions and 27 deletions

View File

@@ -142,7 +142,7 @@ func (e ErrClientNoUDPPacketsRecently) Error() string {
return "no UDP packets received (maybe there's a firewall/NAT in between)"
}
// ErrClientUDPTimeout is returned when UDP packets have been received previously
// ErrClientUDPTimeout is returned when timeout has exceeded but UDP packets have been received previously
// but now nothing is being received.
type ErrClientUDPTimeout struct{}
@@ -151,6 +151,14 @@ func (e ErrClientUDPTimeout) Error() string {
return "UDP timeout"
}
// ErrClientTCPTimeout is returned when timeout has exceeded.
type ErrClientTCPTimeout struct{}
// Error implements the error interface.
func (e ErrClientTCPTimeout) Error() string {
return "TCP timeout"
}
// ErrClientRTPInfoInvalid is returned in case of an invalid RTP-Info.
type ErrClientRTPInfoInvalid struct {
Err error