Package qb :: Module remoteMessaging :: Class RemoteMessagingServer
[hide private]
[frames] | no frames]

Class RemoteMessagingServer

source code


Create and manage a logger running in a thread.

Class Hierarchy for RemoteMessagingServer
Class Hierarchy for RemoteMessagingServer

Instance Methods [hide private]
 
__init__(self, verbose=False, port=None)
Create a logging object and RemoteMessagingReceiver which will send logRecords to it.
source code
tuple (ip, port)
getServerAddr(self)
Returns: Return the IP address and port number of the host running the socket server.
source code
str An IP address in dotted notation: n.n.n.n
getServerIP(self)
Returns: Return the IP address of the host running the socket server.
source code
int A port number for an INET socket.
getServerPort(self)
Returns: Return the port number of the host running the socket server.
source code
 
start(self)
Start the socket server in a thread.
source code
 
stop(self)
Shut down the socket server
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  DEFAULT_LOGGER_PORT = 0
  loggerIP = '127.0.0.1'
  THREADNAME = 'remoteMessagingServerMainThead'
Properties [hide private]
tuple (ip, port) serverAddress
str An IP address in dotted notation: n.n.n.n serverIP
int A port number for an INET socket. serverPort

Inherited from object: __class__

Method Details [hide private]

__init__(self, verbose=False, port=None)
(Constructor)

source code 

Create a logging object and RemoteMessagingReceiver which will send logRecords to it.

Parameters:
  • verbose (bool) - Print out open/close messages or not
Overrides: object.__init__

getServerAddr(self)

source code 
Returns: tuple (ip, port)
Return the IP address and port number of the host running the socket server.

getServerIP(self)

source code 
Returns: str An IP address in dotted notation: n.n.n.n
Return the IP address of the host running the socket server.

getServerPort(self)

source code 
Returns: int A port number for an INET socket.
Return the port number of the host running the socket server.

Property Details [hide private]

serverAddress

Get Method:
getServerAddr(self) - Returns: Return the IP address and port number of the host running the socket server.
Type:
tuple (ip, port)

serverIP

Get Method:
getServerIP(self) - Returns: Return the IP address of the host running the socket server.
Type:
str An IP address in dotted notation: n.n.n.n

serverPort

Get Method:
getServerPort(self) - Returns: Return the port number of the host running the socket server.
Type:
int A port number for an INET socket.