public class ServerThread
extends java.lang.Thread
| Constructor | Description |
|---|---|
ServerThread(java.net.Socket socket,
Maps mapHandler,
de.sg_o.app.miio.base.Token tk,
java.util.logging.Level logLevel) |
Create a new server thread.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
run() |
Start the server thread.
|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic ServerThread(java.net.Socket socket,
Maps mapHandler,
de.sg_o.app.miio.base.Token tk,
java.util.logging.Level logLevel)
throws java.io.IOException
socket - The socket of the new client.mapHandler - The map handler.tk - The devices token.logLevel - The log level.java.io.IOException - If the the socket is invalid, the token is invalid or the map handler is invalid.Copyright © 2018. All rights reserved.