Package g4ds :: Module g4dslistener :: Class ServiceHandler
[show private | hide private]
[frames | no frames]

Class ServiceHandler


Responsible to deal with one service.
Method Summary
  __init__(self)
Yet empty constructor.
  g4dsCallBack(self, msg, senderid, serviceid)
Callback function; to be passed to the g4ds module.
  listen(self)
Listen for messages on the fifo.
  serve(self, g4ds, data, number)
Serves one cconnected service.
  _cleanUp(self, number)
  _createSessionKey(self)
Generates a symmetric session key.
  _decryptSession(self, ciphered)
Decrypts a message with the session key.
  _encryptSession(self, msg)
Encrypts a message with the session key.
  _loadPublicKeys(self)
  _receiveOne(self)
  _sendOne(self, message)

Method Details

__init__(self)
(Constructor)

Yet empty constructor.

g4dsCallBack(self, msg, senderid, serviceid)

Callback function; to be passed to the g4ds module. Each receiving message for this application will be passed to this function by the g4ds system.

listen(self)

Listen for messages on the fifo. Once, a message arrives, pass it on to the g4ds system.

serve(self, g4ds, data, number)

Serves one cconnected service.

_createSessionKey(self)

Generates a symmetric session key.

_decryptSession(self, ciphered)

Decrypts a message with the session key.

_encryptSession(self, msg)

Encrypts a message with the session key.

Generated by Epydoc 2.0 on Sat Oct 22 22:52:46 2005 http://epydoc.sf.net