feat: accept connection structure

This commit is contained in:
2025-04-27 15:40:07 +02:00
parent f137795414
commit e8def487d4

View File

@ -4,7 +4,6 @@ import (
"encoding/json" "encoding/json"
"flag" "flag"
"fmt" "fmt"
"net"
"os" "os"
"os/signal" "os/signal"
"syscall" "syscall"
@ -118,7 +117,7 @@ func StartServer(addr *hsp.Adddress) {
srv := server.NewServer(*addr) srv := server.NewServer(*addr)
fmt.Printf("Server created on address: %s\n", srv.Addr.String()) fmt.Printf("Server created on address: %s\n", srv.Addr.String())
handler := make(chan net.Conn, 1) handler := make(chan *hsp.Connection, 1)
router := server.NewRouter() router := server.NewRouter()
@ -263,6 +262,3 @@ func main() {
StartSession(addr, df, &headerList) StartSession(addr, df, &headerList)
} }