osdep-windows.go 820 B

12345678910111213141516171819202122232425262728293031323334
  1. // +build windows
  2. /*
  3. * Copyright (C)2013-2020 ZeroTier, Inc.
  4. *
  5. * Use of this software is governed by the Business Source License included
  6. * in the LICENSE.TXT file in the project's root directory.
  7. *
  8. * Change Date: 2025-01-01
  9. *
  10. * On the date above, in accordance with the Business Source License, use
  11. * of this software will be governed by version 2.0 of the Apache License.
  12. */
  13. /****/
  14. package zerotier
  15. import (
  16. "net"
  17. "net/http"
  18. winio "github.com/Microsoft/go-winio"
  19. )
  20. const windowsAPISocketPathPrefix = "\\\\.\\pipe\\zerotier_"
  21. func createNamedSocketListener(basePath, name string) (net.Listener, error) {
  22. return winio.ListenPipe(windowsAPISocketPathPrefix+name, nil)
  23. }
  24. func createNamedSocketHTTPClient(basePath, name string) (*http.Client, error) {
  25. panic("needs implementation")
  26. return nil, nil
  27. }