transfer_connection


Description:

public bool transfer_connection (owned Socket socket, string ip, int port, string? initial_buffer)

Take an existing network socket and use it for an RTSP connection.

This is used when transferring a socket from an HTTP server which should be used as an RTSP over HTTP tunnel. The initial_buffer contains any remaining data that the HTTP server read from the socket while parsing the HTTP header.

Parameters:

this

a Server

socket

a network socket

ip

the IP address of the remote client

port

the port used by the other end

initial_buffer

any initial data that was already read from the socket

Returns:

TRUE if all was ok, FALSE if an error occurred.