osdep-windows.go 801 B

123456789101112131415161718192021222324252627282930313233
  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: 2024-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. winio "github.com/Microsoft/go-winio"
  18. )
  19. const windowsAPISocketPathPrefix = "\\\\.\\pipe\\zerotier_"
  20. func createNamedSocketListener(basePath, name string) (net.Listener, error) {
  21. winio.ListenPipe(windowsAPISocketPathPrefix+name, nil)
  22. }
  23. func createNamedSocketHTTPClient(basePath, name string) (*http.Client, error) {
  24. panic("needs implementation")
  25. return nil, nil
  26. }