Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenbsd.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS WinSock 2 DLL 00004 * FILE: misc/bsd.c 00005 * PURPOSE: Legacy BSD sockets APIs 00006 * PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net) 00007 * REVISIONS: 00008 * CSH 15/06-2001 Created 00009 */ 00010 00011 #include "ws2_32.h" 00012 00013 /* 00014 * @implemented 00015 */ 00016 ULONG 00017 EXPORT 00018 htonl(IN ULONG hostlong) 00019 { 00020 return DH2N(hostlong); 00021 } 00022 00023 00024 /* 00025 * @implemented 00026 */ 00027 USHORT 00028 EXPORT 00029 htons(IN USHORT hostshort) 00030 { 00031 return WH2N(hostshort); 00032 } 00033 00034 00035 /* 00036 * @implemented 00037 */ 00038 ULONG 00039 EXPORT 00040 ntohl(IN ULONG netlong) 00041 { 00042 return DN2H(netlong); 00043 } 00044 00045 00046 /* 00047 * @implemented 00048 */ 00049 USHORT 00050 EXPORT 00051 ntohs(IN USHORT netshort) 00052 { 00053 return WN2H(netshort); 00054 } 00055 00056 /* EOF */ Generated on Sun May 27 2012 04:27:05 for ReactOS by
1.7.6.1
|