Documentation ¶
Index ¶
- type Socket
- func (sk *Socket) Close() error
- func (sk *Socket) LocalAddr() net.Addr
- func (sk *Socket) NextProt() byte
- func (sk *Socket) Read(p []byte) (n int, err error)
- func (sk *Socket) RemoteAddr() net.Addr
- func (sk *Socket) SetDeadline(t time.Time) error
- func (sk *Socket) SetReadDeadline(t time.Time) error
- func (sk *Socket) SetWriteDeadline(t time.Time) error
- func (sk *Socket) SharedSec() []byte
- func (sk *Socket) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Socket ¶
type Socket struct {
// contains filtered or unexported fields
}
Socket represents a TinySS connection; it implements net.Conn but with more methods.
func (*Socket) NextProt ¶ added in v0.12.0
NextProt returns the "next protocol" signal given by the remote.
func (*Socket) RemoteAddr ¶
RemoteAddr returns the remote address.
func (*Socket) SetDeadline ¶
SetDeadline sets the deadline.
func (*Socket) SetReadDeadline ¶
SetReadDeadline sets the read deadline.
func (*Socket) SetWriteDeadline ¶
SetWriteDeadline sets the write deadline.
Click to show internal directories.
Click to hide internal directories.