github.com/aergoio/aergo@v1.3.1/p2p/p2pcommon/subprotocol.go (about)

     1  /*
     2   * @file
     3   * @copyright defined in aergo/LICENSE.txt
     4   */
     5  
     6  package p2pcommon
     7  
     8  // SubProtocol identifies the lower type of p2p message
     9  type SubProtocol uint32
    10  
    11  func (i SubProtocol) Uint32() uint32 {
    12  	return uint32(i)
    13  }