Documentation ¶
Index ¶
- type Connection
- func (c Connection) Close()
- func (c Connection) LocalAddress() string
- func (c Connection) Read(length uint32) ([]byte, error)
- func (c Connection) ReadByte() (byte, error)
- func (c Connection) ReadWithLength() ([]byte, error)
- func (c Connection) RemoteAddress() string
- func (c Connection) Write(data []byte) error
- func (c Connection) WriteWithLength(source []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
对连接进行包装
func (Connection) Close ¶
func (c Connection) Close()
func (Connection) LocalAddress ¶
func (c Connection) LocalAddress() string
func (Connection) ReadWithLength ¶
func (c Connection) ReadWithLength() ([]byte, error)
func (Connection) RemoteAddress ¶
func (c Connection) RemoteAddress() string
func (Connection) Write ¶
func (c Connection) Write(data []byte) error
func (Connection) WriteWithLength ¶
func (c Connection) WriteWithLength(source []byte) error
Click to show internal directories.
Click to hide internal directories.