Conn

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.net

Implemented in

Implements

Required Methods


Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

LocalAddr

 

method LocalAddr: Addr

 

Addr LocalAddr()

 

func LocalAddr() -> Addr

 

func LocalAddr() Addr

Read

 

// .NET, Island
method Read(b: Slice<Byte>): tuple of (Int64, error)
// .NET Standard 2.0
method Read(b: Slice<Byte>): ValueTuple<Int64, error>

 

// .NET, Island
(Int64, error) Read(Slice<Byte> b)
// .NET Standard 2.0
ValueTuple<Int64, error> Read(Slice<Byte> b)

 

// .NET, Island
func Read(_ b: Slice<Byte>) -> (Int64, error)
// .NET Standard 2.0
func Read(_ b: Slice<Byte>) -> ValueTuple<Int64, error>

 

// .NET, Island
func Read(b Slice<Byte>) (Int64, error)
// .NET Standard 2.0
func Read(b Slice<Byte>) ValueTuple<Int64, error>

Parameters:

  • b:

RemoteAddr

 

method RemoteAddr: Addr

 

Addr RemoteAddr()

 

func RemoteAddr() -> Addr

 

func RemoteAddr() Addr

SetDeadline

 

method SetDeadline(tt: Time): error

 

error SetDeadline(Time tt)

 

func SetDeadline(_ tt: Time) -> error

 

func SetDeadline(tt Time) error

Parameters:

  • tt:

SetReadDeadline

 

method SetReadDeadline(tt: Time): error

 

error SetReadDeadline(Time tt)

 

func SetReadDeadline(_ tt: Time) -> error

 

func SetReadDeadline(tt Time) error

Parameters:

  • tt:

SetWriteDeadline

 

method SetWriteDeadline(t: Time): error

 

error SetWriteDeadline(Time t)

 

func SetWriteDeadline(_ t: Time) -> error

 

func SetWriteDeadline(t Time) error

Parameters:

  • t:

Write

 

// .NET, Island
method Write(b: Slice<Byte>): tuple of (Int64, error)
// .NET Standard 2.0
method Write(b: Slice<Byte>): ValueTuple<Int64, error>

 

// .NET, Island
(Int64, error) Write(Slice<Byte> b)
// .NET Standard 2.0
ValueTuple<Int64, error> Write(Slice<Byte> b)

 

// .NET, Island
func Write(_ b: Slice<Byte>) -> (Int64, error)
// .NET Standard 2.0
func Write(_ b: Slice<Byte>) -> ValueTuple<Int64, error>

 

// .NET, Island
func Write(b Slice<Byte>) (Int64, error)
// .NET Standard 2.0
func Write(b Slice<Byte>) ValueTuple<Int64, error>

Parameters:

  • b: