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")
}
|