SF.net SVN: fclient: [350] trunk/sandbox/fcp2/consts.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-03-09 12:55:12
|
Revision: 350
http://fclient.svn.sourceforge.net/fclient/?rev=350&view=rev
Author: jUrner
Date: 2008-03-09 05:55:05 -0700 (Sun, 09 Mar 2008)
Log Message:
-----------
many comb overs
Modified Paths:
--------------
trunk/sandbox/fcp2/consts.py
Modified: trunk/sandbox/fcp2/consts.py
===================================================================
--- trunk/sandbox/fcp2/consts.py 2008-03-09 12:54:35 UTC (rev 349)
+++ trunk/sandbox/fcp2/consts.py 2008-03-09 12:55:05 UTC (rev 350)
@@ -192,24 +192,27 @@
class DisconnectReason(BaseBitFlags):
"""Reasons for client disconnect
- @cvar Close: the clent has been closed
- @cvar ConnectingFailed: connection could not be established
+ @cvar Close: the clent is about to close down
+ @cvar ConnectionDied: the connection died unexpectedly
@cvar DuplicateClientName: another client opend a connection with the same connection name
- @cvar Shutdown: regular shutdown of the connection
- @cvar SocketDied: connection to the node died unexpectingly
- @cvar SocketShutdown: the node shut down the connection unexpectingly
- @cvar VersionMissmatch: node or Fcp version did not match
+ @cvar IOConnectFailed: io connection could not be established
+ @cvar NodeClosing: freenet node is closing down
+ @cvar NoNodeHello: NodeHello message did not arrive in time
+ @cvar Reconnect: the clent is about to be reconnected
+ @cvar UnknonNodeHello: some unknow message insteadof NodeHello was encountered durin g connect
+ @cvar VersionMissmatch: nodebuild or Fcp version did not match
"""
- Close = 0x0
- ConnectingFailed = 0x1
- DuplicateClientName = 0x2
- Shutdown = 0x4
- SocketDied = 0x8
- SocketShutdown = 0x10
- VersionMissmatch = 0x20
- UnknownNodeHello = 0x40
+ Close = 0
+ ConnectionDied = 1
+ DuplicateClientName = 2
+ IOConnectFailed = 3
+ NodeClosing = 4
+ NoNodeHello = 5
+ Reconnect = 6
+ UnknownNodeHello = 7
+ VersionMissmatch = 8
+
-
class FilenameCollision(BaseBitFlags):
"""Filename collision flags
@cvar HandleNever: don't handle filename collisions
@@ -272,6 +275,7 @@
SocketDied = 'Socket died'
SocketShutdown = 'Socket shutdown by node'
+ CaughtException = 'Caught exception'
KeyboardInterrupt = 'keyboard interrupt' # kick out
SocketDied = 'socket died'
@@ -279,7 +283,7 @@
EventTriggered = 'triggered: '
- RequestInvalidClientToken = 'Request invalid client token'
+ InvalidPersistentParams = 'Invalid peristent params'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|