TCPListener

Overview

Location

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

Implements

Instance Methods


constructor (Socket) Island

 

constructor(aSock: Socket)

 

TCPListener(Socket aSock)

 

init(_ aSock: Socket)

Parameters:

  • aSock:

constructor (Socket) .NET, .NET Standard 2.0

 

constructor(aSock: Socket)

 

TCPListener(Socket aSock)

 

init(_ aSock: Socket)

Parameters:

  • aSock:

Accept

 

// .NET, Island
method Accept: tuple of (Conn, error)
// .NET Standard 2.0
method Accept: ValueTuple<Conn, error>

 

// .NET, Island
(Conn, error) Accept()
// .NET Standard 2.0
ValueTuple<Conn, error> Accept()

 

// .NET, Island
func Accept() -> (Conn, error)
// .NET Standard 2.0
func Accept() -> ValueTuple<Conn, error>

 

// .NET, Island
func Accept() (Conn, error)
// .NET Standard 2.0
func Accept() ValueTuple<Conn, error>

AcceptTCP

 

// .NET, Island
method AcceptTCP: tuple of (IPConn, error)
// .NET Standard 2.0
method AcceptTCP: ValueTuple<IPConn, error>

 

// .NET, Island
(IPConn, error) AcceptTCP()
// .NET Standard 2.0
ValueTuple<IPConn, error> AcceptTCP()

 

// .NET, Island
func AcceptTCP() -> (IPConn, error)
// .NET Standard 2.0
func AcceptTCP() -> ValueTuple<IPConn, error>

 

// .NET, Island
func AcceptTCP() (IPConn, error)
// .NET Standard 2.0
func AcceptTCP() ValueTuple<IPConn, error>

Addr

 

method Addr: Addr

 

Addr Addr()

 

func Addr() -> Addr

 

func Addr() Addr

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error