☰
Debian Codegraph
@
0.0~git20220523.1a23e78+ds-1
/
/
cmd
/
sock_stress
/
main_darwin.go
☽
☼
cmd/sock_stress/main_darwin.go
code
plain
raw
Apache-2.0
2016 Ian Campbell <
[email protected]
>; 2016-2018 Justin Cormack <
[email protected]
>; 2016 Riyaz Faizullabhoy <
[email protected]
>; 2016-2018, 2020, 2022 Rolf Neugebauer <
[email protected]
>; 2016 Simon Ferquel <
[email protected]
>; 2017 Ben Weedon <
[email protected]
>; 2017 John Starks <
[email protected]
>; 2017 Magnus Skjegstad <
[email protected]
>; 2018, 2022 David Scott <
[email protected]
>; 2018 Guillaume Rose <
[email protected]
>; 2020 Vladislav Grishenko <
[email protected]
>; 2022 Alex Ankudinov <
[email protected]
>
debian/copyright
1
package main
2
3
import (
4
"flag"
5
6
"github.com/linuxkit/virtsock/pkg/vsock"
7
)
8
9
var (
10
socketMode string
11
)
12
13
func init() {
14
flag.StringVar(&socketMode, "m", "docker", "Socket Mode (hyperkit:/path/ or docker)")
15
}
16
17
func hostInit() {
18
vsock.SocketMode(socketMode)
19
}