This commit is contained in:
zhouyuyan
2017-09-11 17:00:02 +08:00
parent cc1b3239ad
commit 5601632a33
22 changed files with 28 additions and 1251 deletions

View File

@@ -1,12 +1,13 @@
package broker
import (
"hmq/packets"
"net"
"strings"
"sync"
"time"
"github.com/eclipse/paho.mqtt.golang/packets"
log "github.com/cihub/seelog"
)
@@ -20,6 +21,10 @@ const (
//REMOTE is the router connect to other cluster
REMOTE = 2
)
const (
Connected = 1
Disconnected = 2
)
type client struct {
typ int