1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 10:45:22 +00:00

timestamp in protocol

This commit is contained in:
v2ray 2016-02-23 22:51:08 +01:00
parent 464f15cb02
commit 9e68c150e1

11
common/protocol/time.go Normal file
View File

@ -0,0 +1,11 @@
package protocol
import (
"github.com/v2ray/v2ray-core/common/serial"
)
type Timestamp int64
func (this Timestamp) Bytes() []byte {
return serial.Int64Literal(this).Bytes()
}