1 /*
2  * Collie - An asynchronous event-driven network framework using Dlang development
3  *
4  * Copyright (C) 2015-2017  Shanghai Putao Technology Co., Ltd 
5  *
6  * Developer: putao's Dlang team
7  *
8  * Licensed under the Apache-2.0 License.
9  *
10  */
11 module collie.codec.mqtt.mqttconnectreturncode;
12 
13 enum MqttConnectReturnCode : ubyte
14 {
15 	CONNECTION_ACCEPTED =  0x00,
16 	CONNECTION_REFUSED_UNACCEPTABLE_PROTOCOL_VERSION = 0X01,
17 	CONNECTION_REFUSED_IDENTIFIER_REJECTED = 0x02,
18 	CONNECTION_REFUSED_SERVER_UNAVAILABLE = 0x03,
19 	CONNECTION_REFUSED_BAD_USER_NAME_OR_PASSWORD = 0x04,
20 	CONNECTION_REFUSED_NOT_AUTHORIZED = 0x05,
21 }
22