github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/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  )