mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
fixes and doc
This commit is contained in:
parent
08dba25de3
commit
ca833c966a
@ -20,10 +20,11 @@ class APIClient:
|
|||||||
>>> client.ctrl_bye()
|
>>> client.ctrl_bye()
|
||||||
{'code': 259, 'msg': 'CQI_STATUS_BYE_OK'}
|
{'code': 259, 'msg': 'CQI_STATUS_BYE_OK'}
|
||||||
|
|
||||||
Args:
|
Attributes:
|
||||||
host (str): URL to the CQP server. For example,
|
host (str): URL to the CQP server. For example,
|
||||||
``cqpserver.localhost`` or ``127.0.0.1``.
|
``cqpserver.localhost`` or ``127.0.0.1``.
|
||||||
port (int): Port the CQP server listens on. Default: ``4877``
|
port (int): Port the CQP server listens on. Default: ``4877``
|
||||||
|
socket (socket.socket): Socket for communicating with a CQP server.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, host, port=4877):
|
def __init__(self, host, port=4877):
|
||||||
|
@ -15,8 +15,9 @@ class CQiClient:
|
|||||||
{'code': 260, 'msg': 'CQI_STATUS_PING_OK'}
|
{'code': 260, 'msg': 'CQI_STATUS_PING_OK'}
|
||||||
>>> client.disconnect()
|
>>> client.disconnect()
|
||||||
{'code': 259, 'msg': 'CQI_STATUS_BYE_OK'}
|
{'code': 259, 'msg': 'CQI_STATUS_BYE_OK'}
|
||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
api (APIClient): A client pointing to the specified to the CQP server.
|
api (APIClient): An API client pointing to the specified CQP server.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, host, port=4877):
|
def __init__(self, host, port=4877):
|
||||||
|
Loading…
Reference in New Issue
Block a user