File: hvsock_fallback.go

package info (click to toggle)
golang-github-linuxkit-virtsock 0.0~git20220523.1a23e78%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 464 kB
  • sloc: ansic: 1,481; makefile: 81; sh: 7
file content (22 lines) | stat: -rw-r--r-- 416 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// +build !linux,!windows

package hvsock

import (
	"fmt"
	"net"
	"runtime"
)

// Supported returns if hvsocks are supported on your platform
func Supported() bool {
	return false
}

func Dial(raddr Addr) (Conn, error) {
	return nil, fmt.Errorf("Dial() not implemented on %s", runtime.GOOS)
}

func Listen(addr Addr) (net.Listener, error) {
	return nil, fmt.Errorf("Listen() not implemented on %s", runtime.GOOS)
}