mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
fixes and doc
This commit is contained in:
parent
08dba25de3
commit
ca833c966a
@ -20,10 +20,11 @@ class APIClient:
|
||||
>>> client.ctrl_bye()
|
||||
{'code': 259, 'msg': 'CQI_STATUS_BYE_OK'}
|
||||
|
||||
Args:
|
||||
Attributes:
|
||||
host (str): URL to the CQP server. For example,
|
||||
``cqpserver.localhost`` or ``127.0.0.1``.
|
||||
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):
|
||||
|
@ -15,8 +15,9 @@ class CQiClient:
|
||||
{'code': 260, 'msg': 'CQI_STATUS_PING_OK'}
|
||||
>>> client.disconnect()
|
||||
{'code': 259, 'msg': 'CQI_STATUS_BYE_OK'}
|
||||
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user