Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EchoClient ¶
type EchoClient struct {
// contains filtered or unexported fields
}
EchoClient echo client
func NewEchoClient ¶
func NewEchoClient(serverAddr string) (*EchoClient, error)
NewEchoClient new client
func (*EchoClient) SendMsg ¶
func (c *EchoClient) SendMsg(msg string) error
SendMsg send msg to server
type EchoServer ¶
type EchoServer struct {
// contains filtered or unexported fields
}
EchoServer echo server
Click to show internal directories.
Click to hide internal directories.