/
dzavalishin
/
libemqtt
Обзор
Документация
Войти
/
dzavalishin
/
libemqtt
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/python/python-mqtt.h
40 строк
1 KB
Vicente Ruiz
Keepalive
12 апр 2012, 15:51
12 апр 2012, 15:51
0a8df85
Код
Авторство
О чём код?
/* * This file is part of python-emqtt. * * python-emqtt is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * python-emqtt is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with python-emqtt. If not, see <http://www.gnu.org/licenses/>. * * * Copyright 2012 Vicente Ruiz Rodríguez <vruiz2.0@gmail.com>. All rights reserved. * */ #ifndef __LIBEMQTT_PYTHON_MQTT_H__ #define __LIBEMQTT_PYTHON_MQTT_H__ #include <Python.h> #include <structmember.h> #include <libemqtt.h> typedef struct { PyObject_HEAD PyObject* socket; short connected; // < 1 means not connected int keepalive; mqtt_broker_handle_t broker; } Mqtt; extern PyObject *ConnectionError; extern PyTypeObject MqttType; #endif // __LIBEMQTT_PYTHON_MQTT_H__