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)

 

constructor(value: Conn)

 

Conn(Conn value)

 

init(_ value: Conn)

 

Sub New(value As Conn)

Parameters:

  • value:

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

 

Function Close() As error

Config

 

// .NET, .NET Standard 2.0
method Config: Memory<Config>
// Island
method Config: Memory<Config>

 

// .NET, .NET Standard 2.0
Memory<Config> Config()
// Island
Memory<Config> Config()

 

// .NET, .NET Standard 2.0
func Config() -> Memory<Config>
// Island
func Config() -> Memory<Config>

 

// .NET, .NET Standard 2.0
func Config() Memory<Config>
// Island
func Config() Memory<Config>

 

// .NET, .NET Standard 2.0
Function Config() As Memory<Config>
// Island
Function Config() As Memory<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

 

method Len: int

 

int Len()

 

func Len() -> int

 

func Len() int

 

Function Len() As int

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

 

method NewFrameWriter(payloadType: byte): tuple of (w: frameWriter, err: error)

 

(frameWriter w, error err) NewFrameWriter(byte payloadType)

 

func NewFrameWriter(_ payloadType: byte) -> (frameWriter, error)

 

func NewFrameWriter(payloadType byte) tuple of (|name=w| frameWriter, |name=err| 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

Read (Slice<Byte>): tuple of (n: Int64, err: error) Island

 

method Read(msg: Slice<Byte>): tuple of (n: Int64, err: error)

 

(Int64 n, error err) Read(Slice<Byte> msg)

 

func Read(_ msg: Slice<Byte>) -> (Int64, error)

 

func Read(msg Slice<Byte>) tuple of (|name=n| Int64, |name=err| error)

 

Function Read(msg As Slice<Byte>) As Tuple (Of Int64, error)

Parameters:

  • msg:

Read (Slice<Byte>): tuple of (n: Int64, err: error)

 

method Read(msg: Slice<Byte>): tuple of (n: Int64, err: error)

 

(Int64 n, error err) Read(Slice<Byte> msg)

 

func Read(_ msg: Slice<Byte>) -> (Int64, error)

 

func Read(msg Slice<Byte>) tuple of (|name=n| Int64, |name=err| error)

 

Function Read(msg As Slice<Byte>) As Tuple (Of Int64, error)

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>

 

// .NET, .NET Standard 2.0
Memory<Request> Request()
// Island
Memory<Request> Request()

 

// .NET, .NET Standard 2.0
func Request() -> Memory<Request>
// Island
func Request() -> Memory<Request>

 

// .NET, .NET Standard 2.0
func Request() Memory<Request>
// Island
func Request() Memory<Request>

 

// .NET, .NET Standard 2.0
Function Request() As Memory<Request>
// Island
Function Request() As Memory<Request>

SetDeadline

 

method SetDeadline(t: Time): error

 

error SetDeadline(Time t)

 

func SetDeadline(_ t: Time) -> error

 

func SetDeadline(t Time) error

 

Function SetDeadline(t As Time) As error

Parameters:

  • t:

SetReadDeadline

 

method SetReadDeadline(t: Time): error

 

error SetReadDeadline(Time t)

 

func SetReadDeadline(_ t: Time) -> error

 

func SetReadDeadline(t Time) error

 

Function SetReadDeadline(t As Time) As error

Parameters:

  • t:

SetWriteDeadline

 

method SetWriteDeadline(t: Time): error

 

error SetWriteDeadline(Time t)

 

func SetWriteDeadline(_ t: Time) -> error

 

func SetWriteDeadline(t Time) error

 

Function SetWriteDeadline(t As Time) As error

Parameters:

  • t:

TrailerReader

 

method TrailerReader: Reader

 

Reader TrailerReader()

 

func TrailerReader() -> Reader

 

func TrailerReader() Reader

 

Function TrailerReader() As Reader

Write

 

method Write(msg: Slice<Byte>): tuple of (n: Int64, err: error)

 

(Int64 n, error err) Write(Slice<Byte> msg)

 

func Write(_ msg: Slice<Byte>) -> (Int64, error)

 

func Write(msg Slice<Byte>) tuple of (|name=n| Int64, |name=err| error)

 

Function Write(msg As Slice<Byte>) As Tuple (Of Int64, error)

Parameters:

  • msg:

WriteClose

 

// .NET, .NET Standard 2.0
method WriteClose(status: Int64): error
// Island
method WriteClose(status: int): error

 

// .NET, .NET Standard 2.0
error WriteClose(Int64 status)
// Island
error WriteClose(int status)

 

// .NET, .NET Standard 2.0
func WriteClose(_ status: Int64) -> error
// Island
func WriteClose(_ status: int) -> error

 

// .NET, .NET Standard 2.0
func WriteClose(status Int64) error
// Island
func WriteClose(status int) error

 

// .NET, .NET Standard 2.0
Function WriteClose(status As Int64) As error
// Island
Function WriteClose(status As int) As error

Parameters:

  • status:

 

MaxPayloadBytes

 

var MaxPayloadBytes: int;

 

int MaxPayloadBytes

 

var MaxPayloadBytes: int

 

MaxPayloadBytes int

 

FIELD MaxPayloadBytes() As int

PayloadType

 

var PayloadType: byte;

 

byte PayloadType

 

var PayloadType: byte

 

PayloadType byte

 

FIELD PayloadType() As byte

 

constructor

 

constructor

 

Conn()

 

init()

 

Sub New()

constructor (Conn)

 

constructor(value: Conn)

 

Conn(Conn value)

 

init(_ value: Conn)

 

Sub New(value As 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

 

method Len: int

 

int Len()

 

func Len() -> int

 

func Len() int

 

Function Len() 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

 

method NewFrameWriter(payloadType: byte): tuple of (w: frameWriter, err: error)

 

(frameWriter w, error err) NewFrameWriter(byte payloadType)

 

func NewFrameWriter(_ payloadType: byte) -> (frameWriter, error)

 

func NewFrameWriter(payloadType byte) tuple of (|name=w| frameWriter, |name=err| 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

Read (Slice<Byte>): tuple of (n: Int64, err: error) Island

 

method Read(msg: Slice<Byte>): tuple of (n: Int64, err: error)

 

(Int64 n, error err) Read(Slice<Byte> msg)

 

func Read(_ msg: Slice<Byte>) -> (Int64, error)

 

func Read(msg Slice<Byte>) tuple of (|name=n| Int64, |name=err| error)

 

Function Read(msg As Slice<Byte>) As Tuple (Of Int64, error)

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
error WriteClose(Int64 status)
// Island
error WriteClose(int status)

 

// .NET, .NET Standard 2.0
func WriteClose(_ status: Int64) -> error
// Island
func WriteClose(_ status: int) -> error

 

// .NET, .NET Standard 2.0
func WriteClose(status Int64) error
// Island
func WriteClose(status int) error

 

// .NET, .NET Standard 2.0
Function WriteClose(status As Int64) As error
// Island
Function WriteClose(status As int) As error

Parameters:

  • status: