github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/common/protocol/payload.go (about)

     1  package protocol
     2  
     3  type TransferType byte
     4  
     5  const (
     6  	TransferTypeStream TransferType = 0
     7  	TransferTypePacket TransferType = 1
     8  )
     9  
    10  type AddressType byte
    11  
    12  const (
    13  	AddressTypeIPv4   AddressType = 1
    14  	AddressTypeDomain AddressType = 2
    15  	AddressTypeIPv6   AddressType = 3
    16  )