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
socket | a #GSocket |
ip | the IP address of the other end |
port | the port used by the other end |
initialBuffer | data already read from fd |
conn | storage for a #GstRTSPConnection |
Returns
#GST_RTSP_OK when conn contains a valid connection.