MCPcopy Create free account
hub / github.com/pion/ice / setWriteDeadline

Method setWriteDeadline

candidate_base.go:94–100  ·  view source on GitHub ↗

setWriteDeadline is used by upper layers to push write deadlines down to the underlying packet connection.

(t time.Time)

Source from the content-addressed store, hash-verified

92// setWriteDeadline is used by upper layers to push write deadlines down to the
93// underlying packet connection.
94func (c *candidateBase) setWriteDeadline(t time.Time) error {
95 if c.conn == nil {
96 return nil
97 }
98
99 return c.conn.SetWriteDeadline(t)
100}
101
102// ID returns Candidate ID.
103func (c *candidateBase) ID() string {

Callers 1

SetWriteDeadlineMethod · 0.80

Calls 1

SetWriteDeadlineMethod · 0.45

Tested by

no test coverage detected