Documentation
¶
Index ¶
- type Conn
- func (c *Conn) CertificateHash() string
- func (c *Conn) ClientCryptoModes() uint32
- func (c *Conn) Close() error
- func (c *Conn) Run(ctx context.Context, handler protocol.HandlerTable) error
- func (c *Conn) SessionID() uint32
- func (c *Conn) SetActive()
- func (c *Conn) SetClientCryptoModes(m uint32)
- func (c *Conn) SetSessionID(id uint32)
- func (c *Conn) SetUser(name string, userID uint32, channelID uint32)
- func (c *Conn) State() State
- func (c *Conn) UserChannel() uint32
- func (c *Conn) UserName() string
- func (c *Conn) WriteMessage(msgType protocol.MessageType, msg messages.Message) error
- func (c *Conn) WriteRaw(msgType protocol.MessageType, payload []byte) error
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
net.Conn
Crypt *crypto.CryptState
// contains filtered or unexported fields
}
Conn represents a Mumble client connection.
func (*Conn) CertificateHash ¶
CertificateHash returns the SHA-1 hex fingerprint of the client's TLS certificate, or empty if unavailable.
func (*Conn) ClientCryptoModes ¶
ClientCryptoModes returns the client's advertised crypto mode bitmask (0 = legacy only).
func (*Conn) SetClientCryptoModes ¶
SetClientCryptoModes stores the client's advertised crypto mode bitmask.
func (*Conn) SetSessionID ¶
SetSessionID sets the session ID.
func (*Conn) UserChannel ¶
UserChannel returns the user's channel ID.
func (*Conn) WriteMessage ¶
WriteMessage queues a message for sending.
Click to show internal directories.
Click to hide internal directories.