simplificed monotonic time functions by using x/sys/unix

This commit is contained in:
2024-12-10 13:15:05 +09:00
parent 2d15f0d2a4
commit 6fdae92300
9 changed files with 48 additions and 63 deletions

View File

@ -1,8 +1,8 @@
package hodu
type ConnId uint64
type RouteId uint32
type PeerId uint32
type ConnId uint64
type RouteId uint32 // keep this in sync with the type of RouteId in hodu.proto
type PeerId uint32 // keep this in sync with the type of RouteId in hodu.proto
func MakeRouteStartPacket(route_id RouteId, proto ROUTE_PROTO, addr string, svcnet string) *Packet {
return &Packet{