Conn
Overview
Location
-
Reference:
- Go.dll .NET, .NET Standard 2.0
- Go.fx Island
- Namespace: go.golang.org.x.net.websocket
- Platforms: .NET, .NET Standard 2.0, Island
constructor
constructor
Conn()
init()
Sub New()
constructor (Conn)
Parameters:
- value:
Close
method Close: error
error Close()
func Close() -> error
func Close() error
Function Close() As error
Config
HandleFrame
method HandleFrame(frame: frameReader): tuple of (r: frameReader, err: error)
(frameReader r, error err) HandleFrame(frameReader frame)
func HandleFrame(_ frame: frameReader) -> (frameReader, error)
func HandleFrame(frame frameReader) tuple of (|name=r| frameReader, |name=err| error)
Function HandleFrame(frame As frameReader) As Tuple (Of frameReader, error)
Parameters:
- frame:
HeaderReader
method HeaderReader: Reader
Reader HeaderReader()
func HeaderReader() -> Reader
func HeaderReader() Reader
Function HeaderReader() As Reader
IsClientConn
method IsClientConn: bool
bool IsClientConn()
func IsClientConn() -> bool
func IsClientConn() bool
Function IsClientConn() As bool
IsServerConn
method IsServerConn: bool
bool IsServerConn()
func IsServerConn() -> bool
func IsServerConn() bool
Function IsServerConn() As bool
Len
LocalAddr
method LocalAddr: Addr
Addr LocalAddr()
func LocalAddr() -> Addr
func LocalAddr() Addr
Function LocalAddr() As Addr
MaxPayloadBytes
var MaxPayloadBytes: int;
int MaxPayloadBytes
var MaxPayloadBytes: int
MaxPayloadBytes int
FIELD MaxPayloadBytes() As int
NewFrameReader
method NewFrameReader: tuple of (r: frameReader, err: error)
(frameReader r, error err) NewFrameReader()
func NewFrameReader() -> (frameReader, error)
func NewFrameReader() tuple of (|name=r| frameReader, |name=err| error)
Function NewFrameReader() As Tuple (Of frameReader, error)
NewFrameWriter
func NewFrameWriter(_ payloadType: byte) -> (frameWriter, error)
Function NewFrameWriter(payloadType As byte) As Tuple (Of frameWriter, error)
Parameters:
- payloadType:
PayloadType
var PayloadType: byte;
byte PayloadType
var PayloadType: byte
PayloadType byte
FIELD PayloadType() As byte
PayloadType
method PayloadType: byte
byte PayloadType()
func PayloadType() -> byte
func PayloadType() byte
Function PayloadType() As byte
Parameters:
- msg:
Parameters:
- msg:
RemoteAddr
method RemoteAddr: Addr
Addr RemoteAddr()
func RemoteAddr() -> Addr
func RemoteAddr() Addr
Function RemoteAddr() As Addr
Request
// .NET, .NET Standard 2.0
method Request: Memory<Request>
// Island
method Request: Memory<Request>
SetDeadline
Parameters:
- t:
SetReadDeadline
Parameters:
- t:
SetWriteDeadline
Parameters:
- t:
TrailerReader
method TrailerReader: Reader
Reader TrailerReader()
func TrailerReader() -> Reader
func TrailerReader() Reader
Function TrailerReader() As Reader
Write
Parameters:
- msg:
WriteClose
// .NET, .NET Standard 2.0
method WriteClose(status: Int64): error
// Island
method WriteClose(status: int): error
// .NET, .NET Standard 2.0
func WriteClose(_ status: Int64) -> error
// Island
func WriteClose(_ status: int) -> error
Parameters:
- status:
MaxPayloadBytes
var MaxPayloadBytes: int;
int MaxPayloadBytes
var MaxPayloadBytes: int
MaxPayloadBytes int
FIELD MaxPayloadBytes() As int
PayloadType
constructor
constructor
Conn()
init()
Sub New()
constructor (Conn)
Parameters:
- value:
HandleFrame
method HandleFrame(frame: frameReader): tuple of (r: frameReader, err: error)
(frameReader r, error err) HandleFrame(frameReader frame)
func HandleFrame(_ frame: frameReader) -> (frameReader, error)
func HandleFrame(frame frameReader) tuple of (|name=r| frameReader, |name=err| error)
Function HandleFrame(frame As frameReader) As Tuple (Of frameReader, error)
Parameters:
- frame:
HeaderReader
method HeaderReader: Reader
Reader HeaderReader()
func HeaderReader() -> Reader
func HeaderReader() Reader
Function HeaderReader() As Reader
Len
NewFrameReader
method NewFrameReader: tuple of (r: frameReader, err: error)
(frameReader r, error err) NewFrameReader()
func NewFrameReader() -> (frameReader, error)
func NewFrameReader() tuple of (|name=r| frameReader, |name=err| error)
Function NewFrameReader() As Tuple (Of frameReader, error)
NewFrameWriter
func NewFrameWriter(_ payloadType: byte) -> (frameWriter, error)
Function NewFrameWriter(payloadType As byte) As Tuple (Of frameWriter, error)
Parameters:
- payloadType:
PayloadType
method PayloadType: byte
byte PayloadType()
func PayloadType() -> byte
func PayloadType() byte
Function PayloadType() As byte
Parameters:
- msg:
TrailerReader
method TrailerReader: Reader
Reader TrailerReader()
func TrailerReader() -> Reader
func TrailerReader() Reader
Function TrailerReader() As Reader
WriteClose
// .NET, .NET Standard 2.0
method WriteClose(status: Int64): error
// Island
method WriteClose(status: int): error
// .NET, .NET Standard 2.0
func WriteClose(_ status: Int64) -> error
// Island
func WriteClose(_ status: int) -> error
Parameters:
- status: