Documentation ¶
Index ¶
- Constants
- type Conn
- func (ssl *Conn) Close() error
- func (ssl *Conn) LocalAddr() net.Addr
- func (ssl *Conn) Read(buf []byte) (int, error)
- func (ssl *Conn) RemoteAddr() net.Addr
- func (ssl *Conn) SetDeadline(t time.Time) error
- func (ssl *Conn) SetReadDeadline(t time.Time) error
- func (ssl *Conn) SetWriteDeadline(t time.Time) error
- func (ssl *Conn) StartCipher(inkey, outkey []byte) error
- func (ssl *Conn) Write(buf []byte) (int, error)
Constants ¶
const MaxMsg = 4096
MaxMsg limits the record size. Larger messages are truncated.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn represents one of these SSL connections.
func (*Conn) RemoteAddr ¶
RemoteAddr returns the remote network address, if known.
func (*Conn) SetDeadline ¶
SetDeadline sets the read and write deadlines associated with the connection. It is equivalent to calling both SetReadDeadline and SetWriteDeadline.
func (*Conn) SetReadDeadline ¶
SetReadDeadline sets the deadline for future Read calls and any currently-blocked Read call. A zero value for t means Read will not time out.
func (*Conn) SetWriteDeadline ¶
SetWriteDeadline sets the deadline for future Write calls and any currently-blocked Write call. Even if write times out, it may return n > 0, indicating that some of the data was successfully written. A zero value for t means Write will not time out.
func (*Conn) StartCipher ¶
StartCipher engages digesting and encryption on the link, using 128-bit keys.