public class ServerConnection
extends java.lang.Object
| Constructor and Description |
|---|
ServerConnection(ServerViewManager manager,
java.net.Socket socket,
int remoteId,
java.util.concurrent.LinkedBlockingQueue<SystemMessage> inQueue,
ServiceReplica replica) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticateAndEstablishAuthKey() |
javax.crypto.SecretKey |
getSecretKey() |
void |
send(byte[] data,
boolean useMAC)
Used to send packets to the remote server.
|
void |
shutdown()
Stop message sending and reception.
|
public ServerConnection(ServerViewManager manager, java.net.Socket socket, int remoteId, java.util.concurrent.LinkedBlockingQueue<SystemMessage> inQueue, ServiceReplica replica)
public javax.crypto.SecretKey getSecretKey()
public void shutdown()
public final void send(byte[] data,
boolean useMAC)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void authenticateAndEstablishAuthKey()