2022-02-15 11:08:07 +01:00
|
|
|
package main
|
|
|
|
|
2022-02-19 18:10:52 +01:00
|
|
|
import (
|
|
|
|
"_StorBackEnd/pkg/network"
|
|
|
|
)
|
2022-02-15 11:08:07 +01:00
|
|
|
|
|
|
|
const (
|
|
|
|
MULTICAST_ADDRESS = "226.0.0.1:42500"
|
|
|
|
MULTICAST_SECOND = 10
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
println("StorBackEnd started !")
|
|
|
|
|
2022-02-20 11:34:10 +01:00
|
|
|
//multicast := network.CreateClientMulticast(MULTICAST_ADDRESS, MULTICAST_SECOND)
|
2022-02-15 11:08:07 +01:00
|
|
|
|
|
|
|
/* go */
|
2022-02-20 11:34:10 +01:00
|
|
|
//multicast.Run()
|
|
|
|
|
|
|
|
server := network.ServerUnicast{Network: "tcp", Address: "0.0.0.0:58000"}
|
|
|
|
server.Run()
|
2022-02-15 11:08:07 +01:00
|
|
|
|
|
|
|
}
|