Changeset 7e450c3 for skype/skyped.py
- Timestamp:
- 2008-01-11T20:29:28Z (17 years ago)
- Branches:
- master
- Children:
- a0b206b
- Parents:
- 680920f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
skype/skyped.py
r680920f r7e450c3 135 135 self.debug = False 136 136 self.help = False 137 self.host = "0.0.0.0" 137 138 self.port = 2727 138 139 self.version = False … … 146 147 -d --debug enable debug messages 147 148 -h --help this help 149 -H --host set the tcp host (default: %s) 148 150 -n --nofork don't run as daemon in the background 149 151 -p --port set the tcp port (default: %d) 150 -v --version display version information""" % self.port152 -v --version display version information""" % (self.host, self.port) 151 153 sys.exit(ret) 152 154 … … 154 156 options = Options() 155 157 try: 156 opts, args = getopt.getopt(sys.argv[1:], "dh np:v", ["daemon", "help", "nofork", "port=", "version"])158 opts, args = getopt.getopt(sys.argv[1:], "dhH:np:v", ["daemon", "help", "host=", "nofork", "port=", "version"]) 157 159 except getopt.GetoptError: 158 160 options.usage(1) … … 162 164 elif opt in ("-h", "--help"): 163 165 options.help = True 166 elif opt in ("-H", "--host"): 167 options.host = arg 164 168 elif opt in ("-n", "--nofork"): 165 169 options.daemon = False … … 184 188 print 'skyped is started on port %s, pid: %d' % (options.port, pid) 185 189 sys.exit(0) 186 server( '0.0.0.0', options.port)190 server(options.host, options.port) 187 191 try: 188 192 skype = SkypeApi()
Note: See TracChangeset
for help on using the changeset viewer.