1234567891011121314151617181920212223 |
- package peer
- type Connection interface {
- Raw() interface{}
- Peer() *SessionManager
- Send(msg []byte) error
- Close()
- ID() int64
- RemoteAddr() string
- IsClosed() bool
- }
- type ConnectionIdentify struct {
- id int64
- }
- func (ci *ConnectionIdentify) ID() int64 {
- return ci.id
- }
- func (ci *ConnectionIdentify) SetID(id int64) {
- ci.id = id
- }
|