C 言語関数:htons サンプルコード

サンプルコードを検索した結果です。


TITLE : htons(), htonl(),ntohs(), ntohl()
htons(), htonl(), ntohs(), ntohl().......
http://beej.us/guide/bgnet/output/html/multipage/htonsman.html


TITLE : htons(), htonl(),ntohs(), ntohl()
uint16_t htons(uint16_t hostshort);.......
http://beej.us/guide/bgnet/output/html/multipage/htonsman.html
TITLE : htons(), htonl(),ntohs(), ntohl()
htons().......
http://beej.us/guide/bgnet/output/html/multipage/htonsman.html
TITLE : htons(), htonl(),ntohs(), ntohl()
some_short == ntohs(htons(some_short)); // this expression is true.......
http://beej.us/guide/bgnet/output/html/multipage/htonsman.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
if(uip_connect(uip_conn->ripaddr, HTONS(8080)) == NULL) {.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
uip_connect(ipaddr, HTONS(8080));.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
uip_listen(HTONS(1234));.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
uip_listen(HTONS(2345));.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
case HTONS(1234):.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
case HTONS(2345):.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
uip_connect(ipaddr, HTONS(80));.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
uip_listen(HTONS(80));.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
uip_listen(HTONS(81));.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
case HTONS(80):.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
case HTONS(81):.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
This function is primarily used for converting variables from host byte order to network byte order. For converting constants to network byte order, use the UIP_HTONS() macro instead........
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
Since this function expects the port number in network byte order, a conversion using UIP_HTONS() or uip_htons() is necessary........
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
uip_listen(UIP_HTONS(80));.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
c = uip_udp_new(&addr, UIP_HTONS(12345));.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
uip_udp_bind(c, UIP_HTONS(12344));.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
Since this function expects the port number in network byte order, a conversion using UIP_HTONS() or uip_htons() is necessary........
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Contiki 2.6: The uIP TCP/IP stack
uip_unlisten(UIP_HTONS(80));.......
http://contiki.sourceforge.net/docs/2.6/a01793.html
TITLE : Porting TCP/IP Programmer’s Guide 2.3.3.CPU architecture
htons().......
http://infocenter.arm.com/help/topic/com.arm.doc.dui0144b/BABFBIEI.html
TITLE : Porting TCP/IP Programmer’s Guide 2.3.3.CPU architecture
#define htons(s) (s).......
http://infocenter.arm.com/help/topic/com.arm.doc.dui0144b/BABFBIEI.html
TITLE : Porting TCP/IP Programmer’s Guide 2.3.3.CPU architecture
If your system is using the ARM processor in little-endian mode, the byte order must be swapped. For htonl() and ntohl(), use the lswap() function provided in the \armthumb directory (see Sample package directories). For htons() and ntohs(), use a byte-swapping macro, as shown below:.......
http://infocenter.arm.com/help/topic/com.arm.doc.dui0144b/BABFBIEI.html
TITLE : Porting TCP/IP Programmer’s Guide 2.3.3.CPU architecture
#define htons(s) ((u_short) (((u_short)(s) >> 8) |.......
http://infocenter.arm.com/help/topic/com.arm.doc.dui0144b/BABFBIEI.html
TITLE : Porting TCP/IP Programmer’s Guide 2.3.3.CPU architecture
#define ntohs(s) htons(s).......
http://infocenter.arm.com/help/topic/com.arm.doc.dui0144b/BABFBIEI.html
TITLE : htons function (Windows)
u_short WSAAPI htons(.......
http://msdn.microsoft.com/ja-jp/library/windows/desktop/ms738557(v=vs.85).aspx
TITLE : TCP/IPネットワークプログラミング
srcAddr.sin_port = htons(PORT);.......
http://onishi-lab.jp/programming/tcp_win.html
TITLE : クライアントプログラム
client_addr.sin_port = htons(8000);.......
http://research.nii.ac.jp/~ichiro/syspro98/client.html
Googleで検索

https://www.google.co.jp/#q=htons