Bash-Linux.com : Le SHELL pour les nuls

  Actuellement 46 lignes de commande disponibles
login as: root
root@213.186.33.18's password:
Last login: Sun Aug 1 7:54:27 2010 from 38.107.191.102
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Getsockopt en anglais

GETSOCKOPT(2) Linux Programmer's Manual GETSOCKOPT(2)
 
NAME


getsockopt, setsockopt - get and set options on sockets
 
SYNOPSIS


#include #include int getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen); int setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen);
 
DESCRIPTION


getsockopt() and setsockopt() manipulate the options associated with a socket. Options may exist at multiple protocol levels; they are always present at the uppermost socket level. When manipulating socket options the level at which the option resides and the name of the option must be specified. To manipulate options at the socket level, level is specified as SOL_SOCKET. To manipulate options at any other level the protocol number of the appropriate pro- tocol controlling the option is supplied. For example, to indicate that an option is to be interpreted by the TCP protocol, level should be set to the protocol number of TCP; see getprotoent(3). The parameters optval and optlen are used to access option values for setsockopt(). For getsockopt() they identify a buffer in which the value for the requested option(s) are to be returned. For getsock- opt(), optlen is a value-result parameter, initially containing the size of the buffer pointed to by optval, and modified on return to indicate the actual size of the value returned. If no option value is to be supplied or returned, optval may be NULL. Optname and any specified options are passed uninterpreted to the appropriate protocol module for interpretation. The include file contains definitions for socket level options, described below. Options at other protocol levels vary in format and name; con- sult the appropriate entries in section 4 of the manual. Most socket-level options utilize an int parameter for optval. For setsockopt(), the parameter should be non-zero to enable a boolean option, or zero if the option is to be disabled. For a description of the available socket options see socket(7) and the appropriate protocol man pages.
 
RETURN VALUE


On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
 
ERRORS


EBADF The argument s is not a valid descriptor. EFAULT The address pointed to by optval is not in a valid part of the process address space. For getsockopt(), this error may also be returned if optlen is not in a valid part of the pro- cess address space. EINVAL optlen invalid in setsockopt().
 
ENOPROTOOPT


The option is unknown at the level indicated. ENOTSOCK The argument s is a file, not a socket.
 
CONFORMING TO


SVr4, 4.4BSD (these system calls first appeared in 4.2BSD), POSIX.1-2001.
 
NOTE


The optlen argument of getsockopt and setsockopt is in reality an int [*] (and this is what 4.x BSD and libc4 and libc5 have). Some POSIX confusion resulted in the present socklen_t, also used by glibc. See also accept(2).
 
BUGS


Several of the socket options should be handled at lower levels of the system.
 
SEE ALSO


ioctl(2), socket(2), getprotoent(3), protocols(5), socket(7), tcp(7), unix(7) Linux Man Page 1999-05-24 GETSOCKOPT(2)


 Dernières recherches
Man  en anglais Man getsockopt en anglaisMan  en français Man getsockopt en français
Man  en anglais Man ip en anglaisMan  en français Man ip en français
Man  en anglais Man hosts en anglaisMan  en français Man hosts en français
Man  en anglais Man gunzip en anglaisMan  en français Man gunzip en français
Man  en anglais Man select_tut en anglaisMan  en français Man select_tut en français
Man  en anglais Man wait en anglaisMan  en français Man wait en français
Man  en anglais Man mmap en anglaisMan  en français Man mmap en français
Man  en anglais Man expr en anglaisMan  en français Man expr en français
Man  en anglais Man write en anglaisMan  en français Man write en français
Man  en anglais Man forkpty en anglaisMan  en français Man forkpty en français
Man  en anglais Man grantpt en anglaisMan  en français Man grantpt en français
Man  en anglais Man tr en anglaisMan  en français Man tr en français
Man  en anglais Man sh en anglaisMan  en français Man sh en français
Man  en anglais Man shmctl en anglaisMan  en français Man shmctl en français
Man  en anglais Man ld en anglaisMan  en français Man ld en français

 Recherche

Dans ce moteur de recherche, vous pouvez taper directement votre besoin, en une phrase normale, humaine.
Exemple : vous cherchez comment remplacer un mot par un autre dans tous les fichiers d'un certain dossier. Vous pouvez écrire "Comment remplacer un mot par un autre dans tous les fichiers d'un dossier". Le moteur vous ramenera les résultats en fonction de leur pertinence.
Vous pouvez bien sûr ne chercher qu'un seul mot-clé, par exemple "find".
 Toutes les lignes de code
Par popularité
Par fonction
Recherche avancée
 Les logiciels SHELL/SSH
Putty
Astuces Bash
Faire du SHELL avec PHP!
 La doc officielle
Les man Linux en français
Les man Linux en anglais
 Proposer vos bash
Partagez vos lignes!
 Les requêtes
Déposer une requête
Voir/répondre à une requête
 Quelques sites interessants
Bons sites pour apprendre
 Rechercher