[go-nuts] Advice for new type of net.Conn

2016-12-14 Thread elliotmr
Hello All, I am looking for a little bit of advice for making a new client library for SocketCAN sockets in Linux. Low level support for SockaddrCAN was just added to /x/sys/unix (https://github.com/golang/go/issues/16188) and now

[go-nuts] Generating x/sys/unix cross-platform

2016-08-22 Thread elliotmr
great, I made a small change to syscall_linux.go (https://github.com/elliotmr/cantest/blob/master/unix.diff) and was able to regenerate zerrors_linux_amd64.go, zsysnum_linux_amd64.go, and ztypes_linux_amd64.go using mkall.sh. Actually, the generated files have many more differences than what I

[go-nuts] Custom syscall.Sockaddr

2016-06-24 Thread elliotmr
Hello All, I am trying to set up an interface from Go to SocketCAN (https://www.kernel.org/doc/Documentation/networking/can.txt). This implements the linux socket interface, however it is a completely separate socket type from the regular AF_INET or AF_UNIX socket types. The sockaddr struct f