RTSPConnection.accept

Accept a new connection on socket and create a new #GstRTSPConnection for handling communication on new socket.

Parameters

socket gio.socket.Socket

a socket

conn gstrtsp.rtspconnection.RTSPConnection

storage for a #GstRTSPConnection

cancellable gio.cancellable.Cancellable

a #GCancellable to cancel the operation

Return Value

Type: gstrtsp.types.RTSPResult

#GST_RTSP_OK when conn contains a valid connection.