github.com/v2fly/v2ray-core/v4@v4.45.2/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  )