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 (Socket) Island

 

constructor(aSock: Socket)

 

IPConn(Socket aSock)

 

init(_ aSock: Socket)

 

Sub New(aSock As Socket)

Parameters:

  • aSock:

constructor (Socket) .NET, .NET Standard 2.0

 

constructor(aSock: Socket)

 

IPConn(Socket aSock)

 

init(_ aSock: Socket)

 

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

 

// .NET, .NET Standard 2.0
method SetDeadline(tt: Time): error
// Island
method SetDeadline(tt: Time): error

 

// .NET, .NET Standard 2.0
error SetDeadline(Time tt)
// Island
error SetDeadline(Time tt)

 

// .NET, .NET Standard 2.0
func SetDeadline(_ tt: Time) -> error
// Island
func SetDeadline(_ tt: Time) -> error

 

// .NET, .NET Standard 2.0
func SetDeadline(tt Time) error
// Island
func SetDeadline(tt Time) error

 

// .NET, .NET Standard 2.0
Function SetDeadline(tt As Time) As error
// Island
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

 

// .NET, .NET Standard 2.0
method SetReadDeadline(tt: Time): error
// Island
method SetReadDeadline(tt: Time): error

 

// .NET, .NET Standard 2.0
error SetReadDeadline(Time tt)
// Island
error SetReadDeadline(Time tt)

 

// .NET, .NET Standard 2.0
func SetReadDeadline(_ tt: Time) -> error
// Island
func SetReadDeadline(_ tt: Time) -> error

 

// .NET, .NET Standard 2.0
func SetReadDeadline(tt Time) error
// Island
func SetReadDeadline(tt Time) error

 

// .NET, .NET Standard 2.0
Function SetReadDeadline(tt As Time) As error
// Island
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

 

// .NET, .NET Standard 2.0
method SetWriteDeadline(t: Time): error
// Island
method SetWriteDeadline(t: Time): error

 

// .NET, .NET Standard 2.0
error SetWriteDeadline(Time t)
// Island
error SetWriteDeadline(Time t)

 

// .NET, .NET Standard 2.0
func SetWriteDeadline(_ t: Time) -> error
// Island
func SetWriteDeadline(_ t: Time) -> error

 

// .NET, .NET Standard 2.0
func SetWriteDeadline(t Time) error
// Island
func SetWriteDeadline(t Time) error

 

// .NET, .NET Standard 2.0
Function SetWriteDeadline(t As Time) As error
// Island
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:

 

Implements