github.com/grange74/docker@v1.6.0-rc3/api/server/server_windows.go (about) 1 // +build windows 2 3 package server 4 5 import ( 6 "fmt" 7 8 "github.com/docker/docker/engine" 9 ) 10 11 // NewServer sets up the required Server and does protocol specific checking. 12 func NewServer(proto, addr string, job *engine.Job) (Server, error) { 13 // Basic error and sanity checking 14 switch proto { 15 case "tcp": 16 return setupTcpHttp(addr, job) 17 default: 18 return nil, errors.New("Invalid protocol format. Windows only supports tcp.") 19 } 20 } 21 22 // Called through eng.Job("acceptconnections") 23 func AcceptConnections(job *engine.Job) engine.Status { 24 25 // close the lock so the listeners start accepting connections 26 if activationLock != nil { 27 close(activationLock) 28 } 29 30 return engine.StatusOK 31 }