2014-04-26 09:18:56 +00:00
|
|
|
package System
|
|
|
|
|
2014-10-19 17:19:11 +00:00
|
|
|
import (
|
2014-11-06 16:49:04 +00:00
|
|
|
"github.com/SommerEngineering/Ocean/WebServer"
|
2014-11-07 12:00:55 +00:00
|
|
|
"time"
|
2014-10-19 17:19:11 +00:00
|
|
|
)
|
2014-04-26 09:18:56 +00:00
|
|
|
|
2015-06-17 15:44:52 +00:00
|
|
|
// The main function for the application.
|
2014-04-26 09:18:56 +00:00
|
|
|
func StartAndBlockForever() {
|
2015-06-17 15:44:52 +00:00
|
|
|
|
|
|
|
// Starts the public and private web server with own threads:
|
2014-11-06 16:49:04 +00:00
|
|
|
WebServer.Start()
|
2015-06-17 15:44:52 +00:00
|
|
|
|
|
|
|
// Wait forever:
|
2014-11-07 12:00:55 +00:00
|
|
|
for {
|
|
|
|
time.Sleep(1 * time.Second)
|
|
|
|
}
|
2014-04-26 09:18:56 +00:00
|
|
|
}
|