Documentation ¶
Index ¶
- func NewDisconnected() *types.TransferMsg
- type Link
- func (this *Link) CloseConn()
- func (this *Link) GetAddr() string
- func (this *Link) GetConn() net.Conn
- func (this *Link) GetID() uint64
- func (this *Link) GetPort() uint32
- func (this *Link) GetRXTime() time.Time
- func (this *Link) Rx(magic uint32)
- func (this *Link) SendMessage(msg types.Message) error
- func (this *Link) SetAddr(addr string)
- func (this *Link) SetChan(msgchan chan *types.MsgPayload)
- func (this *Link) SetConn(conn net.Conn)
- func (this *Link) SetID(id uint64)
- func (this *Link) SetPort(p uint32)
- func (this *Link) StopRecvMessage()
- func (this *Link) StopSendMessage()
- func (this *Link) Tx(magic uint32)
- func (this *Link) UpdateRXTime(t time.Time)
- func (this *Link) Valid() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDisconnected ¶ added in v1.0.2
func NewDisconnected() *types.TransferMsg
Types ¶
type Link ¶
Link used to establish
func (*Link) SetChan ¶
func (this *Link) SetChan(msgchan chan *types.MsgPayload)
set message channel for link layer
func (*Link) StopRecvMessage ¶ added in v1.0.2
func (this *Link) StopRecvMessage()
func (*Link) StopSendMessage ¶ added in v1.0.2
func (this *Link) StopSendMessage()
Click to show internal directories.
Click to hide internal directories.