fixes and doc

This commit is contained in:
Patrick Jentsch 2020-04-07 16:36:27 +02:00
parent 08dba25de3
commit ca833c966a
2 changed files with 4 additions and 2 deletions

View File

@ -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):

View File

@ -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):