---
name: "tlsrpt_get_socket"
section: "3"
platform: "linux"
package: "libtlsrpt"
version: "0.5.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/tlsrpt_get_socket"
---

# tlsrpt\_get\_socket(3)

returns the socket file descriptor used within a \`tlsrpt\_connection\_t\`

## NAME

tlsrpt\_get\_socket - returns the socket file descriptor used within a \`tlsrpt\_connection\_t\`

## SYNOPSIS

\#include \<tlsrpt.h\>

int tlsrpt\_get\_socket(truct tlsrpt\_connection\_t\* con)

## DESCRIPTION

The `tlsrpt_get_socket` function returns the socket file descriptor used within a `tlsrpt_connection_t`. This can be useful to set socket options.

## RETURN VALUE

The tlsrpt\_get\_socket function returns the socket file descriptor used within a tlsrpt\_connection\_t.

## SEE ALSO

man:tlsrpt\_strerror\[3\], man:tlsrpt\_error\_code\_is\_internal\[3\]

## AUTHOR

Boris Lohner
