bsd.c
来自「ReactOS是一些高手根据Windows XP的内核编写出的类XP。内核实现机」· C语言 代码 · 共 56 行
C
56 行
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS WinSock 2 DLL
* FILE: misc/bsd.c
* PURPOSE: Legacy BSD sockets APIs
* PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
* REVISIONS:
* CSH 15/06-2001 Created
*/
#include <ws2_32.h>
/*
* @implemented
*/
ULONG
EXPORT
htonl(IN ULONG hostlong)
{
return DH2N(hostlong);
}
/*
* @implemented
*/
USHORT
EXPORT
htons(IN USHORT hostshort)
{
return WH2N(hostshort);
}
/*
* @implemented
*/
ULONG
EXPORT
ntohl(IN ULONG netlong)
{
return DN2H(netlong);
}
/*
* @implemented
*/
USHORT
EXPORT
ntohs(IN USHORT netshort)
{
return WN2H(netshort);
}
/* EOF */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?