mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-07-15 03:45:25 +02:00
.github
.vscode
archive
cmd
docs
example
internal
scripts
test
testrig
vendor
codeberg.org
github.com
go.opentelemetry.io
go.uber.org
golang.org
x
arch
crypto
exp
image
mod
net
bpf
context
html
http
http2
idna
internal
ipv4
batch.go
control.go
control_bsd.go
control_pktinfo.go
control_stub.go
control_unix.go
control_windows.go
control_zos.go
dgramopt.go
doc.go
endpoint.go
genericopt.go
header.go
helper.go
iana.go
icmp.go
icmp_linux.go
icmp_stub.go
packet.go
payload.go
payload_cmsg.go
payload_nocmsg.go
sockopt.go
sockopt_posix.go
sockopt_stub.go
sys_aix.go
sys_asmreq.go
sys_asmreq_stub.go
sys_asmreqn.go
sys_asmreqn_stub.go
sys_bpf.go
sys_bpf_stub.go
sys_bsd.go
sys_darwin.go
sys_dragonfly.go
sys_freebsd.go
sys_linux.go
sys_solaris.go
sys_ssmreq.go
sys_ssmreq_stub.go
sys_stub.go
sys_windows.go
sys_zos.go
zsys_aix_ppc64.go
zsys_darwin.go
zsys_dragonfly.go
zsys_freebsd_386.go
zsys_freebsd_amd64.go
zsys_freebsd_arm.go
zsys_freebsd_arm64.go
zsys_freebsd_riscv64.go
zsys_linux_386.go
zsys_linux_amd64.go
zsys_linux_arm.go
zsys_linux_arm64.go
zsys_linux_loong64.go
zsys_linux_mips.go
zsys_linux_mips64.go
zsys_linux_mips64le.go
zsys_linux_mipsle.go
zsys_linux_ppc.go
zsys_linux_ppc64.go
zsys_linux_ppc64le.go
zsys_linux_riscv64.go
zsys_linux_s390x.go
zsys_netbsd.go
zsys_openbsd.go
zsys_solaris.go
zsys_zos_s390x.go
ipv6
publicsuffix
trace
LICENSE
PATENTS
oauth2
sys
text
tools
google.golang.org
gopkg.in
lukechampine.com
modernc.org
mvdan.cc
modules.txt
web
.dockerignore
.drone.yml
.gitattributes
.gitignore
.golangci.yml
.goreleaser.yml
.readthedocs.yaml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile
LICENSE
README.md
ROADMAP.md
go.mod
go.sum
mkdocs.yml
24 lines
578 B
Go
24 lines
578 B
Go
// Copyright 2012 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.
|
|
|
|
package ipv4
|
|
|
|
import (
|
|
"net"
|
|
|
|
"golang.org/x/net/internal/socket"
|
|
)
|
|
|
|
// BUG(mikio): On Windows, the ControlMessage for ReadFrom and WriteTo
|
|
// methods of PacketConn is not implemented.
|
|
|
|
// A payloadHandler represents the IPv4 datagram payload handler.
|
|
type payloadHandler struct {
|
|
net.PacketConn
|
|
*socket.Conn
|
|
rawOpt
|
|
}
|
|
|
|
func (c *payloadHandler) ok() bool { return c != nil && c.PacketConn != nil && c.Conn != nil }
|