github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/protocol/network-physical.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package protocol
     4  
     5  /*
     6  **********************************************************************************
     7  Physical - (OSI Layer 1: Physical)
     8  **********************************************************************************
     9  */
    10  
    11  // NetworkPhysicalConnection or Hardware2HardwareConnection
    12  type NetworkPhysicalConnection interface {
    13  	RegisterLinkMultiplexer(linkMux NetworkLinkMultiplexer)
    14  	UnRegisterLinkMultiplexer(linkMux NetworkLinkMultiplexer)
    15  
    16  	Send(frame []byte) (err Error)
    17  	SendAsync(frame []byte) (err Error)
    18  
    19  	Shutdown()
    20  }