public class PyUDPSocket extends pySocket
pySocket.DataListener
Constructor and Description |
---|
PyUDPSocket(java.lang.String hostname,
int inPort,
int outPort,
pySocket.DataListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
close()
closes input and output sockets
|
boolean |
isConnected()
checks connectivity with external application
|
void |
run()
runs receiving python information procedure
|
void |
sendMessage(java.lang.String message)
sends message to python
|
addDataListener, removeDataListener
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public PyUDPSocket(java.lang.String hostname, int inPort, int outPort, pySocket.DataListener listener) throws java.io.IOException
java.io.IOException
public void sendMessage(java.lang.String message)
sendMessage
in class pySocket
message
- string message to sendpublic boolean isConnected()
isConnected
in class pySocket
public void run()