SrtConnectionReject

Message sent to reject an incoming connection

Field

Type

Repeated

Description

stream_index

int32

The stream index as given in the connect message

reason

string

Optional free-text reason for the rejection, recorded engine-side: it is logged and, when non-empty, raises an input_connection_rejected notification so an operator can see WHY a publisher was turned away.

It is NOT delivered to the peer. SRT’s only rejection channel is the handshake, which has already completed by the time this decision is made, so the caller simply sees the connection close. (Contrast RTMP, whose application layer carries the reason in a _error response.)