github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/protocol/networking-osi_1-physical.go (about) 1 /* For license and copyright information please see the LEGAL file in the code repository */ 2 3 package protocol 4 5 /* 6 ********************************************************************************** 7 Physical - (OSI Layer 1: Physical) 8 ********************************************************************************** 9 */ 10 11 type NetworkPhysical_NextHeaderID byte 12 13 // https://github.com/GeniusesGroup/RFCs/blob/master/Chapar.md#next-header-standard-supported-protocols 14 const ( 15 NetworkPhysical_Unset NetworkPhysical_NextHeaderID = iota 16 NetworkPhysical_SRPC 17 NetworkPhysical_Chapar 18 NetworkPhysical_Ethernet 19 NetworkPhysical_ATM 20 ) 21 22 // NetworkPhysical_Connection or Hardware2Hardware_Connection 23 type NetworkPhysical_Connection interface { 24 RegisterLinkMultiplexer(linkMux NetworkLink_Multiplexer) 25 UnRegisterLinkMultiplexer(linkMux NetworkLink_Multiplexer) 26 27 Send(frame []byte) (err Error) 28 SendAsync(frame []byte) (err Error) 29 30 Shutdown() 31 }