IPConn

Overview

Location

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


Instance Methods


constructor

 

// .NET, .NET Standard 2.0
constructor(aSock: Socket)
// Island
constructor(aSock: Socket)

 

// .NET, .NET Standard 2.0
IPConn(Socket aSock)
// Island
IPConn(Socket aSock)

 

// .NET, .NET Standard 2.0
init(_ aSock: Socket)
// Island
init(_ aSock: Socket)

 

// .NET, .NET Standard 2.0
Sub New(aSock As Socket)
// Island
Sub New(aSock As Socket)

Parameters:

  • aSock:

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

 

Function Close() As error

CloseRead

 

method CloseRead: error

 

error CloseRead()

 

func CloseRead() -> error

 

func CloseRead() error

 

Function CloseRead() As error

CloseWrite

 

method CloseWrite: error

 

error CloseWrite()

 

func CloseWrite() -> error

 

func CloseWrite() error

 

Function CloseWrite() As error

File

 

// .NET, .NET Standard 2.0
method File: tuple of (Memory<File>, error)
// Island
method File: tuple of (Memory<File>, error)

 

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

 

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

 

// .NET, .NET Standard 2.0
func File() tuple of (Memory<File>, error)
// Island
func File() tuple of (Memory<File>, error)

 

// .NET, .NET Standard 2.0
Function File() As Tuple (Of Memory<File>, error)
// Island
Function File() As Tuple (Of Memory<File>, error)

LocalAddr

 

method LocalAddr: Addr

 

Addr LocalAddr()

 

func LocalAddr() -> Addr

 

func LocalAddr() Addr

 

Function LocalAddr() As Addr

Read

 

method Read(b: Slice<Byte>): tuple of (Int64, error)

 

(Int64, error) Read(Slice<Byte> b)

 

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

 

func Read(b Slice<Byte>) tuple of (Int64, error)

 

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

Parameters:

  • b:

ReadFrom

 

method ReadFrom(b: Slice<Byte>): tuple of (Int64, Addr, error)

 

(Int64, Addr, error) ReadFrom(Slice<Byte> b)

 

func ReadFrom(_ b: Slice<Byte>) -> (Int64, Addr, error)

 

func ReadFrom(b Slice<Byte>) tuple of (Int64, Addr, error)

 

Function ReadFrom(b As Slice<Byte>) As Tuple (Of Int64, Addr, error)

Parameters:

  • b:

ReadFromIP

 

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

 

// .NET, .NET Standard 2.0
(Int64, Memory<IPAddr>, error) ReadFromIP(Slice<Byte> b)
// Island
(Int64, Memory<IPAddr>, error) ReadFromIP(Slice<Byte> b)

 

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

 

// .NET, .NET Standard 2.0
func ReadFromIP(b Slice<Byte>) tuple of (Int64, Memory<IPAddr>, error)
// Island
func ReadFromIP(b Slice<Byte>) tuple of (Int64, Memory<IPAddr>, error)

 

// .NET, .NET Standard 2.0
Function ReadFromIP(b As Slice<Byte>) As Tuple (Of Int64, Memory<IPAddr>, error)
// Island
Function ReadFromIP(b As Slice<Byte>) As Tuple (Of Int64, Memory<IPAddr>, error)

Parameters:

  • b:

ReadFromUDP

 

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

 

// .NET, .NET Standard 2.0
(Int64, Memory<UDPAddr>, error) ReadFromUDP(Slice<Byte> b)
// Island
(Int64, Memory<UDPAddr>, error) ReadFromUDP(Slice<Byte> b)

 

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

 

// .NET, .NET Standard 2.0
func ReadFromUDP(b Slice<Byte>) tuple of (Int64, Memory<UDPAddr>, error)
// Island
func ReadFromUDP(b Slice<Byte>) tuple of (Int64, Memory<UDPAddr>, error)

 

// .NET, .NET Standard 2.0
Function ReadFromUDP(b As Slice<Byte>) As Tuple (Of Int64, Memory<UDPAddr>, error)
// Island
Function ReadFromUDP(b As Slice<Byte>) As Tuple (Of Int64, Memory<UDPAddr>, error)

Parameters:

  • b:

RemoteAddr

 

method RemoteAddr: Addr

 

Addr RemoteAddr()

 

func RemoteAddr() -> Addr

 

func RemoteAddr() Addr

 

Function RemoteAddr() As Addr

SetDeadline

 

method SetDeadline(tt: Time): error

 

error SetDeadline(Time tt)

 

func SetDeadline(_ tt: Time) -> error

 

func SetDeadline(tt Time) error

 

Function SetDeadline(tt As Time) As error

Parameters:

  • tt:

SetKeepAlive

 

method SetKeepAlive(b: Boolean): error

 

error SetKeepAlive(Boolean b)

 

func SetKeepAlive(_ b: Boolean) -> error

 

func SetKeepAlive(b Boolean) error

 

Function SetKeepAlive(b As Boolean) As error

Parameters:

  • b:

SetKeepAlivePeriod

 

method SetKeepAlivePeriod(d: Duration): error

 

error SetKeepAlivePeriod(Duration d)

 

func SetKeepAlivePeriod(_ d: Duration) -> error

 

func SetKeepAlivePeriod(d Duration) error

 

Function SetKeepAlivePeriod(d As Duration) As error

Parameters:

  • d:

SetLinger

 

method SetLinger(b: Int32): error

 

error SetLinger(Int32 b)

 

func SetLinger(_ b: Int32) -> error

 

func SetLinger(b Int32) error

 

Function SetLinger(b As Int32) As error

Parameters:

  • b:

SetNoDelay

 

method SetNoDelay(b: Boolean): error

 

error SetNoDelay(Boolean b)

 

func SetNoDelay(_ b: Boolean) -> error

 

func SetNoDelay(b Boolean) error

 

Function SetNoDelay(b As Boolean) As error

Parameters:

  • b:

SetReadBuffer

 

method SetReadBuffer(bytes: int): error

 

error SetReadBuffer(int bytes)

 

func SetReadBuffer(_ bytes: int) -> error

 

func SetReadBuffer(bytes int) error

 

Function SetReadBuffer(bytes As int) As error

Parameters:

  • bytes:

SetReadDeadline

 

method SetReadDeadline(tt: Time): error

 

error SetReadDeadline(Time tt)

 

func SetReadDeadline(_ tt: Time) -> error

 

func SetReadDeadline(tt Time) error

 

Function SetReadDeadline(tt As Time) As error

Parameters:

  • tt:

SetWriteBuffer

 

method SetWriteBuffer(bytes: int): error

 

error SetWriteBuffer(int bytes)

 

func SetWriteBuffer(_ bytes: int) -> error

 

func SetWriteBuffer(bytes int) error

 

Function SetWriteBuffer(bytes As int) As error

Parameters:

  • bytes:

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:

SyscallConn

 

method SyscallConn: tuple of (RawConn, error)

 

(RawConn, error) SyscallConn()

 

func SyscallConn() -> (RawConn, error)

 

func SyscallConn() tuple of (RawConn, error)

 

Function SyscallConn() As Tuple (Of RawConn, error)

Write

 

method Write(b: Slice<Byte>): tuple of (Int64, error)

 

(Int64, error) Write(Slice<Byte> b)

 

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

 

func Write(b Slice<Byte>) tuple of (Int64, error)

 

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

Parameters:

  • b:

WriteTo

 

method WriteTo(b: Slice<Byte>; addr: Addr): tuple of (Int64, error)

 

(Int64, error) WriteTo(Slice<Byte> b, Addr addr)

 

func WriteTo(_ b: Slice<Byte>, _ addr: Addr) -> (Int64, error)

 

func WriteTo(b Slice<Byte>, addr Addr) tuple of (Int64, error)

 

Function WriteTo(b As Slice<Byte>, addr As Addr) As Tuple (Of Int64, error)

Parameters:

  • b:
  • addr: