Method

GVncConnectionopen_fd_with_hostname

Declaration [src]

gboolean
vnc_connection_open_fd_with_hostname (
  VncConnection* conn,
  int fd,
  const char* hostname
)

Description [src]

Open a connection using fd as the transport. The hostname provided should reflect the name of the host that the fd provides a connection to. This will be used by some authentication schemes, for example x509 certificate validation against hostname.

Parameters

fd int
 

File descriptor to use for the connection.

hostname const char*
 

The host associated with the connection.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.

Return value

Returns: gboolean
 

TRUE if a connection was opened, FALSE if already open.