Trees | Indices | Help |
---|
|
object --+ | threading._Verbose --+ | threading.Thread --+ | TCPServer
Class that represents a TCP socket based server.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
|
|||
|
|
|||
isVerbose = False
|
|||
PORT_IN_USE =
|
|||
CONNECTED =
|
|||
LISTENING =
|
|||
TERMINATED =
|
|||
MESSAGE =
|
|
|||
Inherited from Inherited from Inherited from |
|
Creates a TCP socket server that listens on TCP port for a connecting client. The server runs in its own thread, so the constructor returns immediately. State changes invoke the callback onStateChanged().
|
Method representing the thread's activity. You may override this method in a subclass. The standard run() method invokes the callable object passed to the object's constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
|
Closes the connection and terminates the server thread. Releases the IP port. |
Sends the information msg to the client (as String, the character (ASCII 0) serves as end of string indicator, it is transparently added and removed)
|
Returns True, if a client is connected to the server.
|
Returns True, if the server is in TERMINATED state.
|
Returns the library version.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Sun Apr 16 12:46:33 2017 | http://epydoc.sourceforge.net |