connection

package
v0.0.0-...-2a0aeb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

func GetConnection

func GetConnection() *Connection

*

  • Initialize and/or return single instance of the connection structure.

func (*Connection) Activate

func (c *Connection) Activate()

*

  • Activate the network socket. *
  • Close the Connection.wait channel to indicate that the socket has been
  • initialized.

func (*Connection) Connect

func (c *Connection) Connect() *net.Conn

*

  • Establish connection with a DBGp engine.

func (*Connection) Deactivate

func (c *Connection) Deactivate()

*

  • Deactivate the socket and any established connection.

func (*Connection) Disconnect

func (c *Connection) Disconnect() error

*

  • Drop any established network connection.

func (*Connection) Get

func (c *Connection) Get() *net.Conn

*

  • Return an instance of the network connection, active or not.

func (*Connection) IsOnAir

func (c *Connection) IsOnAir() bool

*

  • Are we talking to a DBGp engine? *
  • We go on air once a DBGp engine connects to Footle. *
  • Write an empty byte array to test if a connection has been established.

func (*Connection) WaitUntilActive

func (c *Connection) WaitUntilActive()

*

  • Block execution when the network socket is not listening.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL