linuxkit / virtsock

Go bindings for virtio and Hyper-V sockets
Other
87 stars 29 forks source link

Add vsock.Dial interface #1

Closed ijc closed 8 years ago

ijc commented 8 years ago

As well as implementing vsock.Dial in the (hopefully) obvious way this also logs the errno from calling bind in vsockListen. I decided to keep the existing errors.New construction and add the errno info to the string there rather than just returning the errno object (which is itself a valid Error, since it is actually a syscall.Errno which implements the error interface) since the string contains a bit more useful context. Could change that if desired though.