public class ConnectionUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFF_SIZE |
static int |
CLOSED_SERVER |
static int |
CURRENT_CONNS_POS |
static int |
INPUT_PORT_POS |
static int |
SIMULT_CONNS_POS |
| Constructor and Description |
|---|
ConnectionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
getCurrentBufferData(TcpActiveMachine machine,
byte[] buffer) |
static TcpActiveMachine |
getNewBufferData(byte[] buffer) |
static void |
getNewBufferData(TcpActiveMachine activeMachine,
byte[] buffer) |
static boolean |
isClosedServer(byte[] buffer) |
static void |
setCloseServerData(byte[] buffer) |
static void |
setCurrentBufferData(DistributedServer worker,
byte[] buffer) |
static void |
setNewBufferData(DistributedServer worker,
byte[] buffer) |
public static final int INPUT_PORT_POS
public static final int SIMULT_CONNS_POS
public static final int CURRENT_CONNS_POS
public static final int BUFF_SIZE
public static final int CLOSED_SERVER
public static void setCloseServerData(byte[] buffer)
public static boolean isClosedServer(byte[] buffer)
public static void setNewBufferData(DistributedServer worker, byte[] buffer)
public static void setCurrentBufferData(DistributedServer worker, byte[] buffer)
public static void getCurrentBufferData(TcpActiveMachine machine, byte[] buffer)
public static TcpActiveMachine getNewBufferData(byte[] buffer)
public static void getNewBufferData(TcpActiveMachine activeMachine, byte[] buffer)
Copyright © 2017. All rights reserved.