Skip to content

Commit

Permalink
update folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
9b9387 committed Jan 13, 2018
1 parent 12f737f commit 62ee260
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 10 deletions.
File renamed without changes.
5 changes: 0 additions & 5 deletions zero/conn.go → conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func NewConn(c net.Conn, hbInterval time.Duration, hbTimeout time.Duration) *Con
}

conn.name = c.RemoteAddr().String()
// conn.uuid = uuid.NewV4().String()
conn.hbTimer = time.NewTimer(conn.hbInterval)

if conn.hbInterval == 0 {
Expand All @@ -46,10 +45,6 @@ func NewConn(c net.Conn, hbInterval time.Duration, hbTimeout time.Duration) *Con
return conn
}

func (c *Conn) SetSessionID(sid string) {
c.sid = sid
}

func (c *Conn) Close() {
c.hbTimer.Stop()
c.rawConn.Close()
Expand Down
5 changes: 0 additions & 5 deletions zero/def.go → def.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
package zero

// type MessageHolder struct {
// uuid string
// message *Message
// }

const (
SERVER_ST_UNKNOW = iota
SERVER_ST_INITED
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 62ee260

Please sign in to comment.