1
2 __version__ = '$Revision: 2075 $'.split()[1]
3 __date__ = '$Date: 2006-05-03 04:18:20 -0400 (Wed, 03 May 2006) $'.split()[1]
4 __author__ = 'Kurt Schwehr'
5
6 __doc__='''
7 Connect to the NOAA SOAP server and rebroadcast the results.
8
9 @author: '''+__author__+'''
10 @version: ''' + __version__ +'''
11 @copyright: 2006
12 @var __date__: Date of last svn commit
13 @undocumented: __version__ __author__ __doc__ myparser
14
15 @bug: FIX: NOT WRITTEN YET. Doh!
16
17 '''
18 import sys
19 import time
20 import socket
21 import thread
22 import select
23
24
25
26
28 '''
29 wheee
30 '''
31
33 self.running = True
34 self.options = options
35
36
37 if __name__=='__main__':
38 from optparse import OptionParser
39
40
41 myparser = OptionParser(usage="%prog [options]",
42 version="%prog "+__version__+' ('+__date__+')')
43
44 myparser.add_option('-i','--in-port',dest='inPort',type='int', default=31401,
45 help='Where the data comes from [default: %default]')
46 myparser.add_option('-I','--in-host',dest='inHost',type='string',default='localhost',
47 help='What host to read data from [default: %default]')
48 myparser.add_option('--in-gethostname',dest='inHostname', action='store_true', default=False,
49 help='Where the data comes from ['+socket.gethostname()+']')
50
51
52 myparser.add_option('-o','--out-port', dest="outPort", type='int',default=31500,
53 help='Where the data will be available to others [default: %default]')
54 myparser.add_option('-O','--out-host',dest='outHost',type='string', default='localhost',
55 help='What machine the source port is on [default: %default]')
56 myparser.add_option('--out-gethostname',dest='outHostname', action='store_true', default=False,
57 help='Use the default hostname ['+socket.gethostname()+']')
58