mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
return an error for unimplemented packetConnWrapper feature
This commit is contained in:
parent
2e4139ea97
commit
85b716bb40
1 changed files with 6 additions and 3 deletions
|
@ -1,11 +1,14 @@
|
||||||
package snowflake_client
|
package snowflake_client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"io"
|
"io"
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var errENOSYS = errors.New("not implemented")
|
||||||
|
|
||||||
type packetConnWrapper struct {
|
type packetConnWrapper struct {
|
||||||
io.ReadWriter
|
io.ReadWriter
|
||||||
remoteAddr net.Addr
|
remoteAddr net.Addr
|
||||||
|
@ -33,13 +36,13 @@ func (pcw *packetConnWrapper) LocalAddr() net.Addr {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (pcw *packetConnWrapper) SetDeadline(t time.Time) error {
|
func (pcw *packetConnWrapper) SetDeadline(t time.Time) error {
|
||||||
return nil
|
return errENOSYS
|
||||||
}
|
}
|
||||||
|
|
||||||
func (pcw *packetConnWrapper) SetReadDeadline(t time.Time) error {
|
func (pcw *packetConnWrapper) SetReadDeadline(t time.Time) error {
|
||||||
return nil
|
return errENOSYS
|
||||||
}
|
}
|
||||||
|
|
||||||
func (pcw *packetConnWrapper) SetWriteDeadline(t time.Time) error {
|
func (pcw *packetConnWrapper) SetWriteDeadline(t time.Time) error {
|
||||||
return nil
|
return errENOSYS
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue