public class ConnectionManager
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
ConnectionManager.SocketListener |
Modifier and Type | Field and Description |
---|---|
private int |
actualSendPort |
private ConnectionManager.SocketListener |
clientListener |
private CommunicationData |
commData |
private java.net.InetAddress |
IPAddressSend |
private java.net.DatagramSocket |
javaSideListenSocket |
private java.net.DatagramSocket |
javaSideSendSocket |
private byte[] |
receiveData |
private java.net.DatagramPacket |
receivePacket |
Constructor and Description |
---|
ConnectionManager() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPlayerData() |
void |
init(int sendPort,
int receivePort) |
boolean |
isNewData() |
void |
printUnityMessage(java.lang.String message) |
void |
sendRTIData(java.lang.String goingData) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private volatile CommunicationData commData
private ConnectionManager.SocketListener clientListener
private java.net.DatagramSocket javaSideSendSocket
private java.net.DatagramSocket javaSideListenSocket
private java.net.InetAddress IPAddressSend
private int actualSendPort
private byte[] receiveData
private java.net.DatagramPacket receivePacket
public ConnectionManager()
public void printUnityMessage(java.lang.String message)
public void init(int sendPort, int receivePort)
public java.lang.String getPlayerData()
public boolean isNewData()
public void sendRTIData(java.lang.String goingData)