Ggit.Remote.connect

### Method

# Ggit Remoteconnect

#### Declaration [src]

    void
    ggit_remote_connect (
      GgitRemote* remote,
      GgitDirection direction,
      GgitRemoteCallbacks* callbacks,
      GgitProxyOptions* proxy_options,
      const gchar* const* custom_headers,
      GError** error
    )

#### Description [src]

Opens a connection to a remote. The transport is selected based on the URL. The direction argument is due to a limitation of the git protocol (over TCP or SSH) which starts up a specific binary which can only do the one or the other.

#### Parameters

`direction` | `GgitDirection`
| Whether you want to receive or send data.
`callbacks` | `GgitRemoteCallbacks`
| The callbacks to use for this connection.
| The data is owned by the caller of the function.
`proxy_options` | `GgitProxyOptions`
| The proxy options.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`custom_headers` | `const gchar* const*`
| Extra HTTP headers to use in this 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.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.