com.sun.squawk.platform.windows
Class Inet
java.lang.Object
com.sun.squawk.platform.windows.Inet
public class Inet
- extends Object
Convert values between host and network byte order.
This is an implementation of byte order conversion routines.
Method Summary |
static int |
htonl(int hostint)
|
static short |
htons(short hostshort)
|
static int |
ntohl(int netint)
|
static short |
ntohs(short netshort)
|
static short |
swap2(int value)
|
static int |
swap4(int value)
|
swap2
public static short swap2(int value)
swap4
public static int swap4(int value)
htonl
public static int htonl(int hostint)
htons
public static short htons(short hostshort)
ntohl
public static int ntohl(int netint)
ntohs
public static short ntohs(short netshort)
"For updated information see the Java FRC site"