The OpenNET Project / Index page

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

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

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

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

    NAME

    htonl, htons, ntohl, ntohs - convert values between host and network byte order
     
    

    SYNOPSIS

    cc [ flag ... ] file ... -lxnet [ library ... ]
    #include <arpa/inet.h>
    
    uint32_t htonl(uint32_t hostlong);
    

    uint16_t htons(uint16_t hostshort);
    

    uint32_t ntohl(uint32_t netlong);
    

    uint16_t  ntohs(uint16_t  netshort);
    

     

    DESCRIPTION

    These functions convert 16-bit and 32-bit quantities between network byte order and host byte order.

    The uint32_t and uint16_t types are made available by inclusion of <inttypes.h>.  

    USAGE

    These functions are most often used in conjunction with Internet addresses and ports as returned by gethostent(3XNET) and getservent(3XNET).

    On some architectures these functions are defined as macros that expand to the value of their argument.  

    RETURN VALUES

    The htonl() and htons() functions return the argument value converted from host to network byte order.

    The ntohl() and ntohs() functions return the argument value converted from network to host byte order.  

    ERRORS

    No errors are defined.  

    ATTRIBUTES

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPEATTRIBUTE VALUE

    Interface StabilityStandard

    MT-Level

     

    SEE ALSO

    endhostent(3XNET), endservent(3XNET), attributes(5), standards(5)


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    USAGE
    RETURN VALUES
    ERRORS
    ATTRIBUTES
    SEE ALSO


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




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

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