about summary refs log tree commit diff stats
path: root/internal/server/tcp.go
blob: b38da3da6b36b5388f6edbecaaa230f93437b7fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package server

import (
	"website/internal/listenfd"
)

func (s *Server) serveTCP() error {
	l, err := listenfd.GetListener(0, s.Addr)
	if err != nil {
		return err
	}

	return s.Serve(l)
}