SF.net SVN: fclient: [312] trunk/sandbox/fcp2/consts.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <ju...@us...> - 2008-03-06 11:58:59
|
Revision: 312
http://fclient.svn.sourceforge.net/fclient/?rev=312&view=rev
Author: jurner
Date: 2008-03-06 03:59:02 -0800 (Thu, 06 Mar 2008)
Log Message:
-----------
bit of this and that
Modified Paths:
--------------
trunk/sandbox/fcp2/consts.py
Modified: trunk/sandbox/fcp2/consts.py
===================================================================
--- trunk/sandbox/fcp2/consts.py 2008-03-06 11:58:32 UTC (rev 311)
+++ trunk/sandbox/fcp2/consts.py 2008-03-06 11:59:02 UTC (rev 312)
@@ -197,6 +197,7 @@
@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
"""
Close = 0x0
@@ -204,7 +205,9 @@
DuplicateClientName = 0x2
Shutdown = 0x4
SocketDied = 0x8
- VersionMissmatch = 0x10
+ SocketShutdown = 0x10
+ VersionMissmatch = 0x20
+ UnknownNodeHello = 0x40
class FilenameCollision(BaseBitFlags):
@@ -251,20 +254,29 @@
ClientRuntime = Client + '.Runtime'
Config = Fcp + '.Config'
+ ClientIOHandler = Client + '.IOHandler'
+
+
+
+
+
class LogMessages:
"""Strings used for log infos"""
- Connecting = 'connecting to node...'
+ Connecting = 'connecting'
Connected = 'connected to node'
- ConnectionRetry = 'connecting to node failed... retrying'
ConnectingFailed = 'connecting to node failed'
+ Retry = 'Retrying'
- ClientClose = 'closing client'
+ Closing = 'Closing'
- MessageSend = 'send'
- MessageReceived = 'received'
+ Sending = 'Sending'
+ Received = 'Received'
+ SocketDied = 'Socket died'
+ SocketShutdown = 'Socket shutdown by node'
+
KeyboardInterrupt = 'keyboard interrupt' # kick out
SocketDied = 'socket died'
AllRequestsCompleted = 'All requests completed'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|