Skip to content

HTTPS clone URL

Subversion checkout URL

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

Cannot retrieve contributors at this time

31 lines (22 sloc) 0.871 kB
#!/usr/bin/env python
# __BEGIN_LICENSE__
# Copyright (C) 2008-2010 United States Government as represented by
# the Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# __END_LICENSE__
# 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
pyraptordProxy.close()
print 'testProxy: closed'
for i in xrange(0, 3):
waitOnce()
Jump to Line
Something went wrong with that request. Please try again.