The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

getsockname (2)
  • >> getsockname (2) ( FreeBSD man: Системные вызовы )
  • getsockname (2) ( Русские man: Системные вызовы )
  • getsockname (2) ( Linux man: Системные вызовы )
  • getsockname (3) ( Solaris man: Библиотечные вызовы )
  • getsockname (3) ( POSIX man: Библиотечные вызовы )

  • BSD mandoc
     

    NAME

    
    
    getsockname
    
     - get socket name
    
     
    

    LIBRARY

    Lb libc
    
     
    

    SYNOPSIS

       #include <sys/types.h>
       #include <sys/socket.h>
    int getsockname (int s struct sockaddr * restrict name socklen_t * restrict namelen);
     

    DESCRIPTION

    The getsockname ();
    system call returns the current Fa name for the specified socket. The Fa namelen argument should be initialized to indicate the amount of space pointed to by Fa name . On return it contains the actual size of the name returned (in bytes).  

    RETURN VALUES

    Rv -std getsockname  

    ERRORS

    The call succeeds unless:

    Bq Er EBADF
    The argument Fa s is not a valid descriptor.
    Bq Er ECONNRESET
    The connection has been reset by the peer.
    Bq Er ENOTSOCK
    The argument Fa s is a file, not a socket.
    Bq Er ENOBUFS
    Insufficient resources were available in the system to perform the operation.
    Bq Er EFAULT
    The Fa name argument points to memory not in a valid part of the process address space.

     

    SEE ALSO

    bind(2), getpeername(2), socket(2)  

    HISTORY

    The getsockname ();
    system call appeared in BSD 4.2  

    BUGS

    Names bound to sockets in the UNIX domain are inaccessible; getsockname ();
    returns a zero length name.


     

    Index

    NAME
    LIBRARY
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    SEE ALSO
    HISTORY
    BUGS


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру