TCP servers setup, connection handling and first command (QUIT).
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user