24 lines
383 B
Go
24 lines
383 B
Go
package main
|
|
|
|
import (
|
|
"_StorBackEnd/pkg/network"
|
|
)
|
|
|
|
const (
|
|
MULTICAST_ADDRESS = "226.0.0.1:42500"
|
|
MULTICAST_SECOND = 10
|
|
)
|
|
|
|
func main() {
|
|
println("StorBackEnd started !")
|
|
|
|
//multicast := network.CreateClientMulticast(MULTICAST_ADDRESS, MULTICAST_SECOND)
|
|
|
|
/* go */
|
|
//multicast.Run()
|
|
|
|
server := network.ServerUnicast{Network: "tcp", Address: "0.0.0.0:58000"}
|
|
server.Run()
|
|
|
|
}
|