Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
560 B

.TH socket_getifname 3
socket_getifname \- get interface name
.B #include <socket.h>
const char* \fBsocket_getifname\fP(uint32 \fIinterface\fR);
socket_getifname returns the symbolic interface name for a network
interface number. The returned char* is a static buffer in the libc.
If you query the named for more than one interface, you have to save the
name before calling \fBsocket_getifidx\fR again.
If something goes wrong, socket_getifname returns "[unknown]".
socket_getifidx(3), socket_connect6(3)