reorder variables

This commit is contained in:
aler9
2021-05-11 11:08:41 +02:00
parent a7436e581b
commit e052f9b024
2 changed files with 9 additions and 9 deletions

View File

@@ -117,12 +117,12 @@ type Server struct {
receiverReportPeriod time.Duration receiverReportPeriod time.Duration
closeSessionAfterNoRequestsFor time.Duration closeSessionAfterNoRequestsFor time.Duration
ctx context.Context
ctxCancel func()
wg sync.WaitGroup
tcpListener net.Listener tcpListener net.Listener
udpRTPListener *serverUDPListener udpRTPListener *serverUDPListener
udpRTCPListener *serverUDPListener udpRTCPListener *serverUDPListener
wg sync.WaitGroup
ctx context.Context
ctxCancel func()
sessions map[string]*ServerSession sessions map[string]*ServerSession
conns map[*ServerConn]struct{} conns map[*ServerConn]struct{}
exitError error exitError error

View File

@@ -42,13 +42,13 @@ type readReq struct {
// ServerConn is a server-side RTSP connection. // ServerConn is a server-side RTSP connection.
type ServerConn struct { type ServerConn struct {
s *Server s *Server
nconn net.Conn nconn net.Conn
ctx context.Context
ctxCancel func()
br *bufio.Reader
bw *bufio.Writer
ctx context.Context
ctxCancel func()
br *bufio.Reader
bw *bufio.Writer
sessions map[string]*ServerSession sessions map[string]*ServerSession
tcpFrameSetEnabled bool // tcp tcpFrameSetEnabled bool // tcp
tcpFrameEnabled bool // tcp tcpFrameEnabled bool // tcp