Documentation ¶
Overview ¶
This package contains basic network code for a TCP client. It allows establishment of a connection over a regular TCP channel, or using a TLS encrypted version by supplying a valid X509 certificate and key file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn represents a single tcp connection.
func Dial ¶
Dial opens a connection to the given address. Optionally it runs in secure mode (TLS). But only if both key and cert contain valid paths to respective x509 key and certificate files.
Click to show internal directories.
Click to hide internal directories.