|
@@ -42,6 +42,8 @@ type IHub interface {
|
|
|
Stop() error // stop hub
|
|
Stop() error // stop hub
|
|
|
DoJob(int) // not used now
|
|
DoJob(int) // not used now
|
|
|
|
|
|
|
|
|
|
+ NewConnection(string, uint64) error
|
|
|
|
|
+
|
|
|
PutSession(uint64, ISession) error // session management base on id
|
|
PutSession(uint64, ISession) error // session management base on id
|
|
|
DelSession(uint64) error
|
|
DelSession(uint64) error
|
|
|
GetSession(uint64) (ISession, error)
|
|
GetSession(uint64) (ISession, error)
|