コード例 #1
0
ファイル: receiver.py プロジェクト: pawellewandowski/TIRT
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from ComssService.dev.control import DevServiceController

desc_file_name = 'address_extractor_service.xml'

controller = DevServiceController(desc_file_name)
try:
    while True:
        print controller.read_object('2')
except:
    pass
finally:
    controller.close_all_connections()
コード例 #2
0
ファイル: receiver.py プロジェクト: pawellewandowski/TIRT
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from ComssService.dev.control import DevServiceController

desc_file_name = "bayes_classifier_service.xml"

controller = DevServiceController(desc_file_name)
try:
    while True:
        print controller.read_object("2")
except:
    pass
finally:
    controller.close_all_connections()