SF.net SVN: fclient: [215] trunk/sandbox/fcp/fcp2_0_consts.py
Status: Pre-Alpha
Brought to you by:
jurner
|
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.
|