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.
Click to show internal directories.
Click to hide internal directories.