connection_create_from_socket


Description:


[ Version ( replacement = "RTSPConnection.create_from_socket" ) ]
public Result connection_create_from_socket (Socket socket, string ip, uint16 port, string initial_buffer, out Connection? conn)

Create a new Connection 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 Socket

ip

the IP address of the other end

port

the port used by the other end

initial_buffer

data already read from fd

conn

storage for a Connection

Returns:

OK when conn contains a valid connection.


Namespace: Gst.RTSP