SF.net SVN: fclient: [321] trunk/sandbox/fcp2/iohandler.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <ju...@us...> - 2008-03-06 12:12:15
|
Revision: 321
http://fclient.svn.sourceforge.net/fclient/?rev=321&view=rev
Author: jurner
Date: 2008-03-06 04:12:21 -0800 (Thu, 06 Mar 2008)
Log Message:
-----------
removed test code
Modified Paths:
--------------
trunk/sandbox/fcp2/iohandler.py
Modified: trunk/sandbox/fcp2/iohandler.py
===================================================================
--- trunk/sandbox/fcp2/iohandler.py 2008-03-06 12:09:53 UTC (rev 320)
+++ trunk/sandbox/fcp2/iohandler.py 2008-03-06 12:12:21 UTC (rev 321)
@@ -68,7 +68,6 @@
def setTimeout(self, n):
pass
-
#*****************************************************************************
#
#*****************************************************************************
@@ -294,9 +293,8 @@
self._log.debug(consts.LogMessages.Received + msg.pprint())
return msg
+
-
-
def sendMessage(self, name, data=None, **params):
"""Sends a message to freenet
@param name: name of the message to send
@@ -353,33 +351,5 @@
#
#***********************************************************************************************
if __name__ == '__main__':
-
- c = IOHandler()
- def cb(event, *params):
- print event
- #print event == c.events.MessageReceived
- #print event.msg
-
-
- #for e in c.events:
- # e += cb
-
- if c.connect(duration=1, host='127.0.0.1', port=9481):
-
-
- c.sendMessageEx(message.Message(consts.Message.ClientHello, Name='foo', ExpectedVersion="2,0"))
- msg = c.readMessage()
-
-
- #print 222, c.nextMessage()
-
- c.close()
-
-
-
-
-
-
-
-
+ pass
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|