Thread: SF.net SVN: fclient: [202] trunk/sandbox/fcp/fcp2_0_consts.py (Page 2)
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <ju...@us...> - 2008-02-11 10:53:34
|
Revision: 202
http://fclient.svn.sourceforge.net/fclient/?rev=202&view=rev
Author: jurner
Date: 2008-02-11 02:53:36 -0800 (Mon, 11 Feb 2008)
Log Message:
-----------
fixed message names
Modified Paths:
--------------
trunk/sandbox/fcp/fcp2_0_consts.py
Modified: trunk/sandbox/fcp/fcp2_0_consts.py
===================================================================
--- trunk/sandbox/fcp/fcp2_0_consts.py 2008-02-11 10:52:59 UTC (rev 201)
+++ trunk/sandbox/fcp/fcp2_0_consts.py 2008-02-11 10:53:36 UTC (rev 202)
@@ -228,6 +228,9 @@
KeyboardInterrupt = 'keyboard interrupt' # kick out
SocketDied = 'socket died'
AllRequestsCompleted = 'All requests completed'
+
+ EventTriggered = 'Event Triggered: '
+
class Message:
@@ -300,9 +303,9 @@
URIGenerated = 'URIGenerated'
# client s (internal use only)
- ClientSocketTimeout = 1
- ClientSocketDied = 2
- ClientDisconnected = 3
+ ClientSocketTimeout = 'FcSocketTimeout'
+ ClientSocketDied = 'FcSocketDied'
+ ClientDisconnected = 'FcClientDisconnected'
class RequestStatus(BaseBitFlags):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ju...@us...> - 2008-02-12 09:47:28
|
Revision: 207
http://fclient.svn.sourceforge.net/fclient/?rev=207&view=rev
Author: jurner
Date: 2008-02-12 01:47:25 -0800 (Tue, 12 Feb 2008)
Log Message:
-----------
added new const to DisconnectReason to indicate regular client close
Modified Paths:
--------------
trunk/sandbox/fcp/fcp2_0_consts.py
Modified: trunk/sandbox/fcp/fcp2_0_consts.py
===================================================================
--- trunk/sandbox/fcp/fcp2_0_consts.py 2008-02-11 10:57:05 UTC (rev 206)
+++ trunk/sandbox/fcp/fcp2_0_consts.py 2008-02-12 09:47:25 UTC (rev 207)
@@ -173,12 +173,14 @@
class DisconnectReason(BaseBitFlags):
"""Reasons for client disconnect
+ @cvar Close: the clent has been closed
@cvar ConnectingFailed: connection could not be established
@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 VersionMissmatch: node or Fcp version did not match
"""
+ Close = 0x0
ConnectingFailed = 0x1
DuplicateClientName = 0x2
Shutdown = 0x4
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ju...@us...> - 2008-02-12 15:56:25
|
Revision: 210
http://fclient.svn.sourceforge.net/fclient/?rev=210&view=rev
Author: jurner
Date: 2008-02-12 07:56:20 -0800 (Tue, 12 Feb 2008)
Log Message:
-----------
added some more logger consts
Modified Paths:
--------------
trunk/sandbox/fcp/fcp2_0_consts.py
Modified: trunk/sandbox/fcp/fcp2_0_consts.py
===================================================================
--- trunk/sandbox/fcp/fcp2_0_consts.py 2008-02-12 15:55:42 UTC (rev 209)
+++ trunk/sandbox/fcp/fcp2_0_consts.py 2008-02-12 15:56:20 UTC (rev 210)
@@ -168,9 +168,10 @@
"""Consts indicating the verbosity level for debugging"""
Debug = logging.DEBUG
Info = logging.INFO
- Warning = logging.WARNING
+ Warning = logging.WARNING
+ Error = logging.ERROR
+ Critical = logging.CRITICAL
-
class DisconnectReason(BaseBitFlags):
"""Reasons for client disconnect
@cvar Close: the clent has been closed
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ju...@us...> - 2008-02-16 10:07:06
|
Revision: 215
http://fclient.svn.sourceforge.net/fclient/?rev=215&view=rev
Author: jurner
Date: 2008-02-16 02:07:11 -0800 (Sat, 16 Feb 2008)
Log Message:
-----------
some more consts
Modified Paths:
--------------
trunk/sandbox/fcp/fcp2_0_consts.py
Modified: trunk/sandbox/fcp/fcp2_0_consts.py
===================================================================
--- trunk/sandbox/fcp/fcp2_0_consts.py 2008-02-16 10:06:20 UTC (rev 214)
+++ trunk/sandbox/fcp/fcp2_0_consts.py 2008-02-16 10:07:11 UTC (rev 215)
@@ -215,6 +215,14 @@
TypesAll = (SSK, KSK, CHK, USK, SVK)
+class LoggerNames:
+ """Logger names"""
+ Fcp = ''
+ Client = 'Client'
+ Config = 'Config'
+
+
+
class LogMessages:
"""Strings used for log infos"""
@@ -340,6 +348,25 @@
RemovedFromQueue = 0x2000000
+class PeerNodeStatus:
+ Connected = 'CONNECTED'
+ BackedOff = 'BACKED OFF'
+ TooNew = 'TOO NEW'
+ TooOld = 'TOO OLD'
+ Disconnected = 'DISCONNECTED'
+ NeverConnected = 'NEVER CONNECTED'
+ Disabled = 'DISABLED'
+ ClockProblem = 'CLOCK PROBLEM'
+ ConnectionError = 'CONNECTION ERROR'
+ RoutingDisabled = 'ROUTING DISABLED'
+ ListenOnly = 'LISTEN ONLY'
+ Listening = 'LISTENING'
+ Bursting = 'BURSTING'
+ Disconnecting = 'DISCONNECTING'
+ Unknown = 'UNKNOWN STATUS'
+
+
+
class RequestType(BaseBitFlags):
"""Consts indicating the type of a request"""
@@ -347,9 +374,11 @@
GetData = 0x1
GetFile = 0x2
GetKeyInfo = 0x4
- Put = 0x8
- PutDiskDir = 0x10
- PutComplexDir = 0x20
+ PutData = 0x8
+ PutFile = 0x10
+ PutDir = 0x20
+ PutMultiple = 0x40
+ PutRedirect = 0x80
GenerateSSKKeypair = 0x1000
GenerateUSKKeypair = 0x2000
@@ -362,7 +391,7 @@
MaskGet = GetData | GetFile | GetKeyInfo
MaskGenerateKeypair = GenerateSSKKeypair | GenerateUSKKeypair
MaskPlugin = PluginInfo | PluginMessage
- MaskPut = Put | PutDiskDir | PutComplexDir
+ MaskPut = PutData | PutFile | PutDir | PutMultiple | PutRedirect
#TODO: no idea how fcp handles strings as in <Peer volatile.status=CONNECTED>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|