Documentation ¶
Index ¶
- Constants
- Variables
- func Read(conn *tls.Conn) ([]byte, error)
- func ReadString(conn *tls.Conn) (string, error)
- func ReadStringBuffer(buffSize int, conn *tls.Conn) (string, error)
- func ReadStringBufferTimeout(buffSize int, conn *tls.Conn, timeout time.Duration) (string, error)
- func ReadStringTimeout(conn *tls.Conn, timeout time.Duration) (string, error)
- func ReadTimeout(conn *tls.Conn, timeout time.Duration) ([]byte, error)
- func Write(value []byte, conn *tls.Conn) (int, error)
- func WriteString(value string, conn *tls.Conn) (int, error)
- type CertificateKeyPair
- type Sender
- type TCPClient
Constants ¶
View Source
const ( DEFAULT_IP_ADDRESS string = "0.0.0.0" DEFAULT_CLIENT_IP_ADDRESS string = "127.0.0.1" DEFAULT_PORT string = "49022" )
Variables ¶
View Source
var (
DEFAULT_TIMEOUT time.Duration = 5 * time.Second
)
Functions ¶
func ReadStringBufferTimeout ¶
func ReadStringTimeout ¶
Types ¶
type CertificateKeyPair ¶
type TCPClient ¶
type TCPClient interface { Open(insecureSkipVerify bool) error ServerOS() string IsOpen() bool Send(message bytes.Buffer) error SendText(message string) error ApplyCommand(command string, params ...interface{}) error ReadAnswer() (string, error) ReadDataPack() ([]byte, error) GetHelp() []string Clone() TCPClient Close() error }
Click to show internal directories.
Click to hide internal directories.