Documentation
¶
Overview ¶
Package ch provides a handy wrapper mechanism for using a net.Conn via channels. This is currently only for text based streams where input is terminated via \r\n. See echoServer/main.go for an example of using this package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
In chan string // Client input strings come down this channel
Out chan string // Strings sent to this channel are relayed to the client
Err chan string // This channel is closed when the connection is closed.
// contains filtered or unexported fields
}
Conn wraps a net.Conn and provides convenient in, out, and error channels.
Click to show internal directories.
Click to hide internal directories.