|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object maslab.telemetry.JugHub
public class JugHub
Connects all clients together, distributing messages according to subscription and advertisement requests.
Nested Class Summary | |
---|---|
class |
JugHub.Connection
Represents one TCP connection to a client, including reader and writer threads. |
class |
JugHub.LocalConnection
|
class |
JugHub.TCPConnection
|
Field Summary | |
---|---|
static int |
DEFAULTPORT
The default port to listen for incoming TCP connections |
static JugHub |
localJugHub
|
Constructor Summary | |
---|---|
JugHub()
Create a new hub, listening on the default port. |
Method Summary | |
---|---|
void |
directReceive(maslab.telemetry.JugPacket p)
Receives a packet of type COMMAND_MSG from a client in the same JVM. |
static void |
main(java.lang.String[] args)
Create a Hub on the default port and begin listening. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULTPORT
public static JugHub localJugHub
Constructor Detail |
---|
public JugHub()
Method Detail |
---|
public void directReceive(maslab.telemetry.JugPacket p)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |