---
name: "lc_ctx_ifx"
section: "3"
platform: "linux"
package: "liblibrecast-dev"
version: "0.9.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/lc_ctx_ifx"
---

# lc\_ctx\_ifx(3)

set default interface for sockets and channels created with this context

## NAME

lc\_ctx\_ifx - set default interface for sockets and channels created with this context

## LIBRARY

Librecast library (*liblibrecast*, *-llibrecast*)

## SYNOPSIS

```
#include <librecast/net.h>
```

**void lc\_ctx\_ifx(lc\_ctx\_t** *\*ctx***, unsigned int** *ifx***);**

Compile and link with *-llibrecast*.

## DESCRIPTION

The **lc\_ctx\_ifx** function sets the default interface to *ifx* for subsequent sockets and channels created with context *ctx*. A value of 0 for *ifx* means all interfaces.

## RETURN VALUE

The **lc\_ctx\_ifx**() function returns no value.

## ERRORS

None.

## SEE ALSO

[**lc\_ctx\_new**(3)](/lc_ctx_new/3.md), [**lc\_ctx\_free**(3)](/lc_ctx_free/3.md), [**lc\_socket\_new**(3)](/lc_socket_new/3.md), **lc\_channel\_new**(3)
