public class NetworkUtil extends Object
| Constructor and Description |
|---|
NetworkUtil() |
| Modifier and Type | Method and Description |
|---|---|
static long |
convertIpPortToUniqueId(byte[] quad,
int port) |
static long |
getClientIdBySocketChannel(AsynchronousSocketChannel socketChannel) |
static String |
getIpPortByClientId(long clientId) |
public static long convertIpPortToUniqueId(byte[] quad,
int port)
public static long getClientIdBySocketChannel(AsynchronousSocketChannel socketChannel) throws IOException
IOExceptionpublic static String getIpPortByClientId(long clientId)
Copyright © 2017. All rights reserved.