lm

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

********************************************************************

  • Copyright (c) Intel Corporation 2022
  • SPDX-License-Identifier: Apache-2.0 *********************************************************************

********************************************************************

  • Copyright (c) Intel Corporation 2022
  • SPDX-License-Identifier: Apache-2.0 *********************************************************************

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LMEConnection

type LMEConnection struct {
	Command pthi.Command
	Session *apf.Session
	// contains filtered or unexported fields
}

LMConnection is struct for managing connection to LMS

func NewLMEConnection

func NewLMEConnection(data chan []byte, errors chan error, wg *sync.WaitGroup) *LMEConnection

func (*LMEConnection) Close

func (lme *LMEConnection) Close() error

Close closes the LME connection

func (*LMEConnection) Connect

func (lme *LMEConnection) Connect() error

Connect initializes connection to LME via MEI Driver

func (*LMEConnection) Initialize

func (lme *LMEConnection) Initialize() error

func (*LMEConnection) Listen

func (lme *LMEConnection) Listen()

Listen reads data from the LMS socket connection

func (*LMEConnection) Send

func (lme *LMEConnection) Send(data []byte) error

Send writes data to LMS TCP Socket

type LMSConnection

type LMSConnection struct {
	Connection net.Conn
	// contains filtered or unexported fields
}

LMConnection is struct for managing connection to LMS

func NewLMSConnection

func NewLMSConnection(address string, port string, data chan []byte, errors chan error) *LMSConnection

func (*LMSConnection) Close

func (lms *LMSConnection) Close() error

Close closes the LMS socket connection

func (*LMSConnection) Connect

func (lms *LMSConnection) Connect() error

Connect initializes TCP connection to LMS

func (*LMSConnection) Initialize

func (lms *LMSConnection) Initialize() error

func (*LMSConnection) Listen

func (lms *LMSConnection) Listen()

Listen reads data from the LMS socket connection

func (*LMSConnection) Send

func (lms *LMSConnection) Send(data []byte) error

Send writes data to LMS TCP Socket

type LocalMananger

type LocalMananger interface {
	Initialize() error
	Connect() error
	Listen()
	Send(data []byte) error
	Close() error
}

Jump to

Keyboard shortcuts

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