diff options
| author | Felix Hanley <felix@userspace.com.au> | 2017-06-11 13:25:57 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2017-06-11 13:29:15 +0000 |
| commit | 3185a43420dab2efb85aa601bdfe267e8b2e11f2 (patch) | |
| tree | 846c21d92f7089e3e43c2fec3dbee90aef938f9b /vendor/golang.org/x/net/internal/socket/msghdr_bsd.go | |
| parent | 3291eddb975a1df77975d8083599b5f3a85afaba (diff) | |
| download | dhtsearch-3185a43420dab2efb85aa601bdfe267e8b2e11f2.tar.gz dhtsearch-3185a43420dab2efb85aa601bdfe267e8b2e11f2.tar.bz2 | |
Add torrent tagging
- Move to postgresql to reduce locking issues
- Move ih hash to single thread
- Clean up stuff
Diffstat (limited to 'vendor/golang.org/x/net/internal/socket/msghdr_bsd.go')
| -rw-r--r-- | vendor/golang.org/x/net/internal/socket/msghdr_bsd.go | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/vendor/golang.org/x/net/internal/socket/msghdr_bsd.go b/vendor/golang.org/x/net/internal/socket/msghdr_bsd.go deleted file mode 100644 index 5567afc..0000000 --- a/vendor/golang.org/x/net/internal/socket/msghdr_bsd.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2017 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build darwin dragonfly freebsd netbsd openbsd - -package socket - -import "unsafe" - -func (h *msghdr) pack(vs []iovec, bs [][]byte, oob []byte, sa []byte) { - for i := range vs { - vs[i].set(bs[i]) - } - h.setIov(vs) - if len(oob) > 0 { - h.Control = (*byte)(unsafe.Pointer(&oob[0])) - h.Controllen = uint32(len(oob)) - } - if sa != nil { - h.Name = (*byte)(unsafe.Pointer(&sa[0])) - h.Namelen = uint32(len(sa)) - } -} - -func (h *msghdr) name() []byte { - if h.Name != nil && h.Namelen > 0 { - return (*[sizeofSockaddrInet6]byte)(unsafe.Pointer(h.Name))[:h.Namelen] - } - return nil -} - -func (h *msghdr) controllen() int { - return int(h.Controllen) -} - -func (h *msghdr) flags() int { - return int(h.Flags) -} |
