Documentation ¶
Index ¶
- type Listener
- type SocketConnection
- type Status
- type TcpConnection
- func (conn TcpConnection) AddListener(listener Listener)
- func (conn TcpConnection) Close(ex error) (err error)
- func (conn *TcpConnection) Connect() error
- func (conn TcpConnection) GetConnectionState() Status
- func (conn TcpConnection) Send(frame model.Frame) error
- func (conn TcpConnection) SetConnectionStatus(status Status)
- type TcpOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SocketConnection ¶
type SocketConnection interface { AddListener(listener Listener) GetConnectionState() Status SetConnectionStatus(status Status) Close(ex error) (err error) Send(frame model.Frame) error // contains filtered or unexported methods }
func NewTcpConnection ¶
func NewTcpConnection(options TcpOpts, codecImpl codec.Codec) SocketConnection
type TcpConnection ¶
type TcpConnection struct {
// contains filtered or unexported fields
}
func (TcpConnection) AddListener ¶
func (conn TcpConnection) AddListener(listener Listener)
func (*TcpConnection) Connect ¶
func (conn *TcpConnection) Connect() error
func (TcpConnection) GetConnectionState ¶
func (conn TcpConnection) GetConnectionState() Status
func (TcpConnection) SetConnectionStatus ¶
func (conn TcpConnection) SetConnectionStatus(status Status)
Click to show internal directories.
Click to hide internal directories.