public class EventServer
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
EventServer(java.util.concurrent.BlockingQueue<TouchEvent> mq)
Create EventServer with a given input queue.
|
EventServer(java.util.concurrent.BlockingQueue<TouchEvent> mq,
android.os.Handler ui)
Create EventServer with given input queua as well as UI handler to pass
back messages to the UI thread.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept()
Accept a connection and send back one single event.
|
void |
acceptQueue()
Accept connection and send messages from queue.
|
void |
close()
Close server.
|
void |
run()
Run the SocketServer and wait for connections.
|
public EventServer(java.util.concurrent.BlockingQueue<TouchEvent> mq)
mq - public EventServer(java.util.concurrent.BlockingQueue<TouchEvent> mq, android.os.Handler ui)
mq - ui - public void accept()
public void close()
public void acceptQueue()
public void run()
run in interface java.lang.Runnable