defined PeerId, RouteId, ConnId types and made relevant changes

This commit is contained in:
2024-12-09 22:41:23 +09:00
parent d043fd730b
commit 2d15f0d2a4
7 changed files with 99 additions and 93 deletions

View File

@ -9,7 +9,7 @@ import "time"
type ServerPeerConn struct {
route *ServerRoute
conn_id uint32
conn_id PeerId
cts *ClientConn
conn *net.TCPConn
@ -22,7 +22,7 @@ type ServerPeerConn struct {
client_peer_eof atomic.Bool
}
func NewServerPeerConn(r *ServerRoute, c *net.TCPConn, id uint32) *ServerPeerConn {
func NewServerPeerConn(r *ServerRoute, c *net.TCPConn, id PeerId) *ServerPeerConn {
var spc ServerPeerConn
spc.route = r