type net.Addr
86 uses
net (current package)
dial.go#L95: LocalAddr Addr
dial.go#L263: func (r *Resolver) resolveAddrList(ctx context.Context, op, network, addr string, hint Addr) (addrList, error) {
dial.go#L631: func (sd *sysDialer) dialSingle(ctx context.Context, ra Addr) (c Conn, err error) {
fd_posix.go#L25: laddr Addr
fd_posix.go#L26: raddr Addr
fd_posix.go#L29: func (fd *netFD) setAddr(laddr, raddr Addr) {
interface.go#L77: func (ifi *Interface) Addrs() ([]Addr, error) {
interface.go#L90: func (ifi *Interface) MulticastAddrs() ([]Addr, error) {
interface.go#L118: func InterfaceAddrs() ([]Addr, error) {
interface_linux.go#L123: func interfaceAddrTable(ifi *Interface) ([]Addr, error) {
interface_linux.go#L147: func addrTable(ift []Interface, ifi *Interface, msgs []syscall.NetlinkMessage) ([]Addr, error) {
interface_linux.go#L148: var ifat []Addr
interface_linux.go#L178: func newAddr(ifam *syscall.IfAddrmsg, attrs []syscall.NetlinkRouteAttr) Addr {
interface_linux.go#L207: func interfaceMulticastAddrTable(ifi *Interface) ([]Addr, error) {
interface_linux.go#L213: func parseProcNetIGMP(path string, ifi *Interface) []Addr {
interface_linux.go#L220: ifmat []Addr
interface_linux.go#L250: func parseProcNetIGMP6(path string, ifi *Interface) []Addr {
interface_linux.go#L256: var ifmat []Addr
iprawsock.go#L57: func (a *IPAddr) opAddr() Addr {
iprawsock.go#L125: func (c *IPConn) ReadFrom(b []byte) (int, Addr, error) {
iprawsock.go#L170: func (c *IPConn) WriteTo(b []byte, addr Addr) (int, error) {
iprawsock_posix.go#L14: func sockaddrToIP(sa syscall.Sockaddr) Addr {
ipsock.go#L60: type addrList []Addr
ipsock.go#L63: func isIPv4(addr Addr) bool {
ipsock.go#L76: func isNotIPv4(addr Addr) bool { return !isIPv4(addr) }
ipsock.go#L81: func (addrs addrList) forResolve(network, addr string) Addr {
ipsock.go#L99: func (addrs addrList) first(strategy func(Addr) bool) Addr {
ipsock.go#L114: func (addrs addrList) partition(strategy func(Addr) bool) (primaries, fallbacks addrList) {
ipsock.go#L132: func filterAddrList(filter func(IPAddr) bool, ips []IPAddr, inetaddr func(IPAddr) Addr, originalAddr string) (addrList, error) {
ipsock.go#L271: inetaddr := func(ip IPAddr) Addr {
net.go#L101: type Addr interface {
net.go#L125: LocalAddr() Addr
net.go#L128: RemoteAddr() Addr
net.go#L213: func (c *conn) LocalAddr() Addr {
net.go#L223: func (c *conn) RemoteAddr() Addr {
net.go#L315: ReadFrom(p []byte) (n int, addr Addr, err error)
net.go#L321: WriteTo(p []byte, addr Addr) (n int, err error)
net.go#L328: LocalAddr() Addr
net.go#L389: Addr() Addr
net.go#L452: Source Addr
net.go#L460: Addr Addr
pipe.go#L138: func (*pipe) LocalAddr() Addr { return pipeAddr{} }
pipe.go#L139: func (*pipe) RemoteAddr() Addr { return pipeAddr{} }
sock_posix.go#L92: func (fd *netFD) addrFunc() func(syscall.Sockaddr) Addr {
sock_posix.go#L113: return func(syscall.Sockaddr) Addr { return nil }
sockaddr_posix.go#L16: Addr
tcpsock.go#L62: func (a *TCPAddr) opAddr() Addr {
tcpsock.go#L337: func (l *TCPListener) Addr() Addr { return l.fd.laddr }
tcpsock_posix.go#L16: func sockaddrToTCP(sa syscall.Sockaddr) Addr {
udpsock.go#L65: func (a *UDPAddr) opAddr() Addr {
udpsock.go#L157: func (c *UDPConn) ReadFrom(b []byte) (int, Addr, error) {
udpsock.go#L235: func (c *UDPConn) WriteTo(b []byte, addr Addr) (int, error) {
udpsock_posix.go#L15: func sockaddrToUDP(sa syscall.Sockaddr) Addr {
unixsock.go#L44: func (a *UnixAddr) opAddr() Addr {
unixsock.go#L118: func (c *UnixConn) ReadFrom(b []byte) (int, Addr, error) {
unixsock.go#L163: func (c *UnixConn) WriteTo(b []byte, addr Addr) (int, error) {
unixsock.go#L282: func (l *UnixListener) Addr() Addr { return l.fd.laddr }
unixsock_posix.go#L52: func sockaddrToUnix(sa syscall.Sockaddr) Addr {
unixsock_posix.go#L59: func sockaddrToUnixgram(sa syscall.Sockaddr) Addr {
unixsock_posix.go#L66: func sockaddrToUnixpacket(sa syscall.Sockaddr) Addr {
net/http
socks_bundle.go#L27: func (d *socksDialer) connect(ctx context.Context, c net.Conn, address string) (_ net.Addr, ctxErr error) {
socks_bundle.go#L264: boundAddr net.Addr
socks_bundle.go#L269: func (c *socksConn) BoundAddr() net.Addr {
socks_bundle.go#L343: func (d *socksDialer) DialWithConn(ctx context.Context, c net.Conn, network, address string) (net.Addr, error) {
socks_bundle.go#L403: func (d *socksDialer) pathAddrs(address string) (proxy, dst net.Addr, err error) {
crypto/tls
conn.go#L129: func (c *Conn) LocalAddr() net.Addr {
conn.go#L134: func (c *Conn) RemoteAddr() net.Addr {
github.com/gotd/neo
net.go#L19: addr net.Addr
net.go#L25: addr net.Addr
net.go#L37: func addrKey(a net.Addr) string {
net.go#L57: func (c *PacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error) {
net.go#L78: func (c *PacketConn) WriteTo(p []byte, a net.Addr) (n int, err error) {
net.go#L101: func (c *PacketConn) LocalAddr() net.Addr { return c.addr }
github.com/gotd/td/transport
listener.go#L90: func (l Listener) Addr() net.Addr {
obfuscated.go#L83: func (l obfListener) Addr() net.Addr {
websocket.go#L18: addr net.Addr
websocket.go#L24: func WebsocketListener(addr net.Addr) (net.Listener, http.Handler) {
websocket.go#L109: func (l wsListener) Addr() net.Addr {
golang.org/x/net/internal/socks
client.go#L21: func (d *Dialer) connect(ctx context.Context, c net.Conn, address string) (_ net.Addr, ctxErr error) {
socks.go#L108: boundAddr net.Addr
socks.go#L113: func (c *Conn) BoundAddr() net.Addr {
socks.go#L187: func (d *Dialer) DialWithConn(ctx context.Context, c net.Conn, network, address string) (net.Addr, error) {
socks.go#L247: func (d *Dialer) pathAddrs(address string) (proxy, dst net.Addr, err error) {
nhooyr.io/websocket
netconn_notjs.go#L8: func (nc *netConn) RemoteAddr() net.Addr {
netconn_notjs.go#L15: func (nc *netConn) LocalAddr() net.Addr {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |