TCP servers setup, connection handling and first command (QUIT).

This commit is contained in:
pztrn committed 2019-09-02 22:08:37 +05:00
1 parent 46f14be481
commit e1b71e5d44
2 files changed
+11

No files matched your search

+7
View File
@@ -3,9 +3,16 @@ package networker
import (
// stdlib
"log"
// local
"develop.pztrn.name/gonews/gonews/configuration"
)
// Initialize initializes package.
func Initialize() {
log.Println("Initializing network connections handler...")
for _, iface := range configuration.Cfg.Network {
go startServer(iface)
}
}