socket_local4(3diet)

socket_local43diet

Get local ip address of socket

Usage

#include <socket.h>

int socket_local4(int s,char ip[4],uint16 *port);

Overview

socket_local4 returns the local IP address and port for the UDP or TCP socket s and writes the IP address to ip and the port to port.

If something goes wrong, socket_local4 returns -1, setting errno appropriately.

Releases

Unchanged in 4 releases since Debian 3.1 (Sarge).

  1. 3.1–6.0

From libowfat-dev 0.28-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.