RTSPConnection.createFromSocket

gstrtsp.types.RTSPResult createFromSocket(gio.socket.Socket socket, string ip, ushort port, string initialBuffer, out gstrtsp.rtspconnection.RTSPConnection conn)

Create a new #GstRTSPConnection for handling communication on the existing socket socket. The initial_buffer contains zero terminated data already read from socket which should be used before starting to read new data.

Parameters

socketa #GSocket
ipthe IP address of the other end
portthe port used by the other end
initialBufferdata already read from fd
connstorage for a #GstRTSPConnection

Returns

#GST_RTSP_OK when conn contains a valid connection.