Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 6c7c0a6519
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (22 sloc) 0.871 kB
#!/usr/bin/env python
# Copyright (C) 2008-2010 United States Government as represented by
# the Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# used this for debugging an intermittent problem with connecting
# to pyraptord over tcp. the problem seems to be gone now but
# the tester may still be useful.
from geocamPycroraptor.DaemonProxy import DaemonProxy
def handleLine(sock, line):
print 'testProxy: line =', line
pyraptordProxy = DaemonProxy(lineHandler=handleLine)
def waitOnce():
print 'testProxy: sending get status'
_retCode, namespace = pyraptordProxy.returnGetResponse('status')
taskStatus = namespace['status']
print 'testProxy: status =', taskStatus
print 'testProxy: closed'
for i in xrange(0, 3):
Jump to Line
Something went wrong with that request. Please try again.