Documentation ¶
Index ¶
- func GetPackage(pack []byte) []byte
- type NetReader
- func (reader *NetReader) FindPack(data []byte, atEOF bool) (advance int, token []byte, err error)
- func (reader *NetReader) FindPacksec(data []byte, atEOF bool) (advance int, token []byte, err error)
- func (reader *NetReader) NetRead(Connection net.Conn) (string, error)
- func (reader *NetReader) ReadPackage() (string, error)
- func (reader *NetReader) ReadWithoutEmpty(Wchannel chan string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPackage ¶
Types ¶
type NetReader ¶
type NetReader struct { BufScaner *bufio.Scanner // Scanner NetBufChannel chan string // Channel // contains filtered or unexported fields }
func NewNetReader ¶
func NewNetReader() *NetReader
func (*NetReader) FindPacksec ¶
func (*NetReader) ReadPackage ¶
Click to show internal directories.
Click to hide internal directories.