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

Implements

 

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

 

method Config: Reference<Config>

 

Reference<Config> Config()

 

func Config() -> Reference<Config>

 

func Config() Reference<Config>

 

Function Config() As Reference<Config>

HandleFrame

 

method HandleFrame(frame: frameReader): tuple of (r: frameReader, err: error)

 

(frameReader r, error err) HandleFrame(frameReader frame)

 

func HandleFrame(_ frame: frameReader) -> (r:frameReader, err:error)

 

func HandleFrame(frame frameReader) (r frameReader, err error)

 

Function HandleFrame(frame As frameReader) As Tuple (Of r:=frameReader, err:=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() -> (r:frameReader, err:error)

 

func NewFrameReader() (r frameReader, err error)

 

Function NewFrameReader() As Tuple (Of r:=frameReader, err:=error)

NewFrameWriter

 

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

 

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

 

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

 

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

 

Function NewFrameWriter(payloadType As byte) As Tuple (Of w:=frameWriter, err:=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

 

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

 

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

 

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

 

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

 

Function Read(msg As Slice<Byte>) As Tuple (Of n:=Int64, err:=error)

Parameters:

  • msg:

RemoteAddr

 

method RemoteAddr: Addr

 

Addr RemoteAddr()

 

func RemoteAddr() -> Addr

 

func RemoteAddr() Addr

 

Function RemoteAddr() As Addr

Request

 

method Request: Reference<Request>

 

Reference<Request> Request()

 

func Request() -> Reference<Request>

 

func Request() Reference<Request>

 

Function Request() As Reference<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>) -> (n:Int64, err:error)

 

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

 

Function Write(msg As Slice<Byte>) As Tuple (Of n:=Int64, err:=error)

Parameters:

  • msg:

WriteClose (int): error Island

 

method WriteClose(status: int): error

 

error WriteClose(int status)

 

func WriteClose(_ status: int) -> error

 

func WriteClose(status int) error

 

Function WriteClose(status As int) As error

Parameters:

  • status:

WriteClose (Int64): error .NET, .NET Standard 2.0

 

method WriteClose(status: Int64): error

 

error WriteClose(Int64 status)

 

func WriteClose(_ status: Int64) -> error

 

func WriteClose(status Int64) error

 

Function WriteClose(status As Int64) 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) -> (r:frameReader, err:error)

 

func HandleFrame(frame frameReader) (r frameReader, err error)

 

Function HandleFrame(frame As frameReader) As Tuple (Of r:=frameReader, err:=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() -> (r:frameReader, err:error)

 

func NewFrameReader() (r frameReader, err error)

 

Function NewFrameReader() As Tuple (Of r:=frameReader, err:=error)

NewFrameWriter

 

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

 

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

 

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

 

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

 

Function NewFrameWriter(payloadType As byte) As Tuple (Of w:=frameWriter, err:=error)

Parameters:

  • payloadType:

PayloadType

 

method PayloadType: byte

 

byte PayloadType()

 

func PayloadType() -> byte

 

func PayloadType() byte

 

Function PayloadType() As byte

Read

 

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

 

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

 

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

 

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

 

Function Read(msg As Slice<Byte>) As Tuple (Of n:=Int64, err:=error)

Parameters:

  • msg:

TrailerReader

 

method TrailerReader: Reader

 

Reader TrailerReader()

 

func TrailerReader() -> Reader

 

func TrailerReader() Reader

 

Function TrailerReader() As Reader

WriteClose (int): error Island

 

method WriteClose(status: int): error

 

error WriteClose(int status)

 

func WriteClose(_ status: int) -> error

 

func WriteClose(status int) error

 

Function WriteClose(status As int) As error

Parameters:

  • status:

WriteClose (Int64): error .NET, .NET Standard 2.0

 

method WriteClose(status: Int64): error

 

error WriteClose(Int64 status)

 

func WriteClose(_ status: Int64) -> error

 

func WriteClose(status Int64) error

 

Function WriteClose(status As Int64) As error

Parameters:

  • status:

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

 

Function Close() As error

Config

 

method Config: Reference<Config>

 

Reference<Config> Config()

 

func Config() -> Reference<Config>

 

func Config() Reference<Config>

 

Function Config() As Reference<Config>

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

LocalAddr

 

method LocalAddr: Addr

 

Addr LocalAddr()

 

func LocalAddr() -> Addr

 

func LocalAddr() Addr

 

Function LocalAddr() As Addr

RemoteAddr

 

method RemoteAddr: Addr

 

Addr RemoteAddr()

 

func RemoteAddr() -> Addr

 

func RemoteAddr() Addr

 

Function RemoteAddr() As Addr

Request

 

method Request: Reference<Request>

 

Reference<Request> Request()

 

func Request() -> Reference<Request>

 

func Request() Reference<Request>

 

Function Request() As Reference<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:

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>) -> (n:Int64, err:error)

 

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

 

Function Write(msg As Slice<Byte>) As Tuple (Of n:=Int64, err:=error)

Parameters:

  • msg: