Conn

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island, macOS
  • Namespace: go.crypto.tls

Implements

Instance Methods


constructor

 

constructor

 

Conn()

 

init()

constructor (Conn)

 

constructor(value: Conn)

 

Conn(Conn value)

 

init(_ value: Conn)

Parameters:

  • value:

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

 

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

 

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

 

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

 

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

Parameters:

  • b:

RemoteAddr

 

method RemoteAddr: Addr

 

Addr RemoteAddr()

 

func RemoteAddr() -> Addr

 

func RemoteAddr() Addr

SetDeadline

 

method SetDeadline(t: Time): error

 

error SetDeadline(Time t)

 

func SetDeadline(_ t: Time) -> error

 

func SetDeadline(t Time) error

Parameters:

  • t:

SetReadDeadline

 

method SetReadDeadline(t: Time): error

 

error SetReadDeadline(Time t)

 

func SetReadDeadline(_ t: Time) -> error

 

func SetReadDeadline(t Time) error

Parameters:

  • t:

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, macOS
method Write(b: Slice<Byte>): tuple of (Int64, error)
// .NET Standard 2.0
method Write(b: Slice<Byte>): ValueTuple<Int64, error>

 

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

 

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

 

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

Parameters:

  • b:

CloseWrite

 

method CloseWrite: error

 

error CloseWrite()

 

func CloseWrite() -> error

 

func CloseWrite() error

ConnectionState

 

method ConnectionState: ConnectionState

 

ConnectionState ConnectionState()

 

func ConnectionState() -> ConnectionState

 

func ConnectionState() ConnectionState

Handshake

 

method Handshake: error

 

error Handshake()

 

func Handshake() -> error

 

func Handshake() error

OCSPResponse

 

method OCSPResponse: Slice<Byte>

 

Slice<Byte> OCSPResponse()

 

func OCSPResponse() -> Slice<Byte>

 

func OCSPResponse() Slice<Byte>

VerifyHostname

 

method VerifyHostname(host: string): error

 

error VerifyHostname(string host)

 

func VerifyHostname(_ host: string) -> error

 

func VerifyHostname(host string) error

Parameters:

  • host: