---
name: "socket_connected"
section: "3"
platform: "linux"
package: "libowfat-dev"
version: "0.32-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/socket_connected"
---

# socket\_connected(3)

is a connection established on a socket?

## NAME

socket\_connected - is a connection established on a socket?

## SYNTAX

**#include \<libowfat/socket.h\>**

int **socket\_connected**(int *s*);

## DESCRIPTION

socket\_connected returns 1 if *s* is a socket and a connection is established, 0 otherwise.

## SEE ALSO

[socket\_remote4(3)](/socket_remote4/3.md), [socket\_remote6(3)](/socket_remote6/3.md)
