Conn

Overview

Location


 

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: Memory<Config>

 

Memory<Config> Config()

 

func Config() -> Memory<Config>

 

func Config() Memory<Config>

 

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)

 

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

 

method Request: Memory<Request>

 

Memory<Request> Request()

 

func Request() -> Memory<Request>

 

func Request() Memory<Request>

 

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

 

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:

 

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)

 

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

 

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:

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

 

Function Close() As error

Config

 

method Config: Memory<Config>

 

Memory<Config> Config()

 

func Config() -> Memory<Config>

 

func Config() Memory<Config>

 

Function Config() As Memory<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

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

 

method Request: Memory<Request>

 

Memory<Request> Request()

 

func Request() -> Memory<Request>

 

func Request() Memory<Request>

 

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:

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:

 

Implements