File: 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 (24 lines) | stat: -rw-r--r-- 514 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// +build !linux,!darwin

package vsock

import (
	"fmt"
	"log"
	"net"
)

// SocketMode is the unimplemented fallback for unsupported OSes
func SocketMode(socketMode string) {
	log.Fatalln("Unimplemented")
}

// Dial is the unimplemented fallback for unsupported OSes
func Dial(cid, port uint32) (Conn, error) {
	return nil, fmt.Errorf("Unimplemented")
}

// Listen is the unimplemented fallback for unsupported OSes
func Listen(cid, port uint32) (net.Listener, error) {
	return nil, fmt.Errorf("Unimplemented")
}