unpack_string/hw11_telnet_client/telnet.go

22 lines
361 B
Go
Raw Normal View History

2023-10-30 15:21:12 +03:00
package main
import (
"io"
"time"
)
type TelnetClient interface {
Connect() error
io.Closer
Send() error
Receive() error
}
func NewTelnetClient(address string, timeout time.Duration, in io.ReadCloser, out io.Writer) TelnetClient {
// Place your code here.
return nil
}
// Place your code here.
// P.S. Author's solution takes no more than 50 lines.